mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
Backport bug fix. Fixes bug#1240.
This commit is contained in:
parent
68e18c961d
commit
5eb6899f3e
@ -1,3 +1,8 @@
|
||||
2010-06-18 Werner Koch <wk@g10code.com>
|
||||
|
||||
* parse-packet.c (skip_packet, parse_gpg_control): Take care of
|
||||
premature EOFs. Backport from trunk.
|
||||
|
||||
2010-06-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* gpg.c (main): Use CAST5 as default s2k algo. The macro
|
||||
|
@ -682,7 +682,11 @@ skip_packet( IOBUF inp, int pkttype, unsigned long pktlen, int partial )
|
||||
else
|
||||
{
|
||||
for( ; pktlen; pktlen-- )
|
||||
dump_hex_line(iobuf_get(inp), &i);
|
||||
{
|
||||
dump_hex_line ((c=iobuf_get(inp)), &i);
|
||||
if (c == -1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
putc ('\n', listfp);
|
||||
return;
|
||||
@ -2529,7 +2533,11 @@ parse_gpg_control (IOBUF inp, int pkttype, unsigned long pktlen,
|
||||
}
|
||||
else {
|
||||
for( ; pktlen; pktlen-- )
|
||||
dump_hex_line(iobuf_get(inp), &i);
|
||||
{
|
||||
dump_hex_line ((c=iobuf_get (inp)), &i);
|
||||
if (c == -1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
putc ('\n', listfp);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user