summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/dns.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-11 19:32:54 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-11 19:32:54 +0900
commit1c267deb8f0ebe38b04016ebd23e5831ae35706f (patch)
tree34179fa1a799aefb2945e773450cc0c36e2d7df7 /src/lib/ecore_con/dns.c
parentb0e7df47b53c0ae5431d1fbeea2897c9248250ad (diff)
ecore-con - dns.c - fix double free
this fixes CID 1039909
Diffstat (limited to 'src/lib/ecore_con/dns.c')
-rw-r--r--src/lib/ecore_con/dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c
index b4564e5..ccf5175 100644
--- a/src/lib/ecore_con/dns.c
+++ b/src/lib/ecore_con/dns.c
@@ -5526,6 +5526,7 @@ void dns_so_close(struct dns_socket *so) {
5526 5526
5527void dns_so_reset(struct dns_socket *so) { 5527void dns_so_reset(struct dns_socket *so) {
5528 if (so->answer) free(so->answer); 5528 if (so->answer) free(so->answer);
5529 so->answer = NULL;
5529 5530
5530 memset(&so->state, '\0', sizeof *so - offsetof(struct dns_socket, state)); 5531 memset(&so->state, '\0', sizeof *so - offsetof(struct dns_socket, state));
5531} /* dns_so_reset() */ 5532} /* dns_so_reset() */