Content-Length: 300545 | pFad | http://github.com/postgrespro/postgres/commit/1ed8e771ade6f2a58728f4537e9c19b702d8cf25

13 Remove dead-since-introduction pgcrypto code. · postgrespro/postgres@1ed8e77 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1ed8e771ade6f2a58728f4537e9c19b702d8cf25

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy