summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_con/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c
index 7a0d5e1..b4564e5 100644
--- a/src/lib/ecore_con/dns.c
+++ b/src/lib/ecore_con/dns.c
@@ -5525,7 +5525,7 @@ void dns_so_close(struct dns_socket *so) {
5525 5525
5526 5526
5527void dns_so_reset(struct dns_socket *so) { 5527void dns_so_reset(struct dns_socket *so) {
5528 free(so->answer); 5528 if (so->answer) free(so->answer);
5529 5529
5530 memset(&so->state, '\0', sizeof *so - offsetof(struct dns_socket, state)); 5530 memset(&so->state, '\0', sizeof *so - offsetof(struct dns_socket, state));
5531} /* dns_so_reset() */ 5531} /* dns_so_reset() */