Skip to content

Commit 1ed8e77

Browse files
committed
Remove dead-since-introduction pgcrypto code.
Marko Tiikkaja
1 parent c40212b commit 1ed8e77

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

contrib/pgcrypto/pgp-decrypt.c

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ pgp_skip_packet(PullFilter *pkt)
10691069

10701070
while (res > 0)
10711071
res = pullf_read(pkt, 32 * 1024, &tmp);
1072-
return res < 0 ? res : 0;
1072+
return res;
10731073
}
10741074

10751075
/*
@@ -1078,19 +1078,16 @@ pgp_skip_packet(PullFilter *pkt)
10781078
int
10791079
pgp_expect_packet_end(PullFilter *pkt)
10801080
{
1081-
int res = 1;
1081+
int res;
10821082
uint8 *tmp;
10831083

1084-
while (res > 0)
1084+
res = pullf_read(pkt, 32 * 1024, &tmp);
1085+
if (res > 0)
10851086
{
1086-
res = pullf_read(pkt, 32 * 1024, &tmp);
1087-
if (res > 0)
1088-
{
1089-
px_debug("pgp_expect_packet_end: got data");
1090-
return PXE_PGP_CORRUPT_DATA;
1091-
}
1087+
px_debug("pgp_expect_packet_end: got data");
1088+
return PXE_PGP_CORRUPT_DATA;
10921089
}
1093-
return res < 0 ? res : 0;
1090+
return res;
10941091
}
10951092

10961093
int

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy