diff options
author | Werner Koch <wk@gnupg.org> | 2009-09-30 17:28:38 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-09-30 17:28:38 +0200 |
commit | 27c1b4bef84dcb3a77147887817f228ced8c1b31 (patch) | |
tree | 27817fb6ac1ae22d6bba472de9f55e998534c3df /g10/parse-packet.c | |
parent | Rename encode.c to encrypt.c. (diff) | |
download | gnupg2-27c1b4bef84dcb3a77147887817f228ced8c1b31.tar.xz gnupg2-27c1b4bef84dcb3a77147887817f228ced8c1b31.zip |
Some changes to suport g13.
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 16ca7514f..74f7ae840 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -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); } |