dns: Fix irrelevant use of tmpfile.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 22 Aug 2019 03:51:17 +0000 (12:51 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 22 Aug 2019 03:51:17 +0000 (12:51 +0900)
* dirmngr/dns.c (dns_trace_open): Don't use tmpfile.

GnuPG-bug-id: 4228
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/dns.c

index 142e8d2..2cc1c70 100644 (file)
@@ -4505,8 +4505,6 @@ struct dns_trace *dns_trace_open(FILE *fp, dns_error_t *error) {
 
        if (fp) {
                trace->fp = fp;
-       } else if (!(fp = tmpfile())) {
-               goto syerr;
        }
 
        trace->id = dns_trace_mkid();