Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ed8e77

Browse filesBrowse files
committed
Remove dead-since-introduction pgcrypto code.
Marko Tiikkaja
1 parent c40212b commit 1ed8e77
Copy full SHA for 1ed8e77

File tree

Expand file treeCollapse file tree

1 file changed

+7
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-10
lines changed

‎contrib/pgcrypto/pgp-decrypt.c

Copy file name to clipboardExpand all lines: contrib/pgcrypto/pgp-decrypt.c
+7-10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.