gpg: Fix wrong output in list mode.
authorWerner Koch <wk@gnupg.org>
Fri, 8 May 2015 14:20:26 +0000 (16:20 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 8 May 2015 14:20:26 +0000 (16:20 +0200)
* 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>
g10/parse-packet.c

index c80b7df..3cac6f8 100644 (file)
@@ -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);