double-free
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 31 Aug 2011 10:14:09 +0000 (10:14 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 31 Aug 2011 10:14:09 +0000 (10:14 +0000)
src/vpn/gnunet-service-dns.c

index 9e7c10a1de8cf76002380153c0bee8006767147e..d937b25ec3a8d1c060d95dbf92b970f5c317e04b 100644 (file)
@@ -586,6 +586,7 @@ send_rev_query (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   memcpy (dpkt->data, query_states[id].name, query_states[id].namelen);
   GNUNET_free (query_states[id].name);
+  query_states[id].name = NULL;
 
   struct dns_query_line *dque =
       (struct dns_query_line *) (dpkt->data + (query_states[id].namelen));