mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
dirmngr: Fix possible null reference.
* dirmngr/dns.c (dns_error_t dns_trace_fput): Check NULL. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
7b4edf14bb
commit
7ae1857c90
@ -4606,8 +4606,9 @@ dns_error_t dns_trace_fput(const struct dns_trace_event *te, const void *data, s
|
||||
|
||||
if (fwrite(&tmp, 1, headsize, fp) < headsize)
|
||||
return errno;
|
||||
if (fwrite(data, 1, datasize, fp) < datasize)
|
||||
return errno;
|
||||
if (data)
|
||||
if (fwrite(data, 1, datasize, fp) < datasize)
|
||||
return errno;
|
||||
if (fflush(fp))
|
||||
return errno;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user