mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
dns: Fix irrelevant use of tmpfile.
* dirmngr/dns.c (dns_trace_open): Don't use tmpfile. GnuPG-bug-id: 4228 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
ce403c74db
commit
e00e68135c
@ -4505,8 +4505,6 @@ struct dns_trace *dns_trace_open(FILE *fp, dns_error_t *error) {
|
|||||||
|
|
||||||
if (fp) {
|
if (fp) {
|
||||||
trace->fp = fp;
|
trace->fp = fp;
|
||||||
} else if (!(fp = tmpfile())) {
|
|
||||||
goto syerr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trace->id = dns_trace_mkid();
|
trace->id = dns_trace_mkid();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user