fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 31 Oct 2011 11:50:18 +0000 (11:50 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 31 Oct 2011 11:50:18 +0000 (11:50 +0000)
src/vpn/gnunet-service-dns.c

index 5bf2ed232526929a08da82efebe0231e5f2ee17f..806c4745a5c1d72f01192bf6c156216a924bf7a1 100644 (file)
@@ -1314,18 +1314,13 @@ handle_response(struct dns_pkt* dns, struct sockaddr *addr, socklen_t addrlen, i
             }
           else
             {
-              struct tunnel_notify_queue *head =
-                s->head;
-              struct tunnel_notify_queue *tail =
-                s->tail;
-
               struct tunnel_notify_queue *element =
                 GNUNET_malloc (sizeof (struct tunnel_notify_queue));
               element->cls = c;
               element->len = r + sizeof (struct GNUNET_MessageHeader);
               element->cb = mesh_send_response;
 
-              GNUNET_CONTAINER_DLL_insert_tail (head, tail, element);
+              GNUNET_CONTAINER_DLL_insert_tail (s->head, s->tail, element);
             }
         }
       else