mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Fix wrong output in list mode.
* g10/parse-packet.c (parse_gpg_control): Replace puts by es_fputs to LISTFP. -- Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> This was an oversight from the conversion to estream or a separate listing stream. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
64e809b791
commit
7039f87375
@ -2906,7 +2906,7 @@ parse_gpg_control (IOBUF inp, int pkttype, unsigned long pktlen,
|
||||
goto skipit; /* Definitely too large. We skip it to avoid an
|
||||
overflow in the malloc. */
|
||||
if (list_mode)
|
||||
puts ("- gpg control packet");
|
||||
es_fputs ("- gpg control packet", listfp);
|
||||
|
||||
packet->pkt.gpg_control = xmalloc (sizeof *packet->pkt.gpg_control
|
||||
+ pktlen - 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user