From 7039f87375b3c89d6e63837b811ed2be71c8d9db Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 May 2015 16:20:26 +0200 Subject: [PATCH] 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 This was an oversight from the conversion to estream or a separate listing stream. Signed-off-by: Werner Koch --- g10/parse-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/parse-packet.c b/g10/parse-packet.c index c80b7df7d..3cac6f868 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -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);