From: Christian Grothoff Date: Thu, 23 Feb 2017 21:53:24 +0000 (+0100) Subject: fix use of uninitialized ID after last refactoring X-Git-Tag: taler-0.2.1~70^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f65dd2db3c32e12752592f76833dc66e0bd3f9e;p=oweals%2Fgnunet.git fix use of uninitialized ID after last refactoring --- diff --git a/src/pt/gnunet-daemon-pt.c b/src/pt/gnunet-daemon-pt.c index 97ac8e961..54556cc52 100644 --- a/src/pt/gnunet-daemon-pt.c +++ b/src/pt/gnunet-daemon-pt.c @@ -864,14 +864,13 @@ handle_dns_response (void *cls, const struct DnsResponseMessage *msg) { struct CadetExit *exit = cls; - struct GNUNET_TUN_DnsHeader dns; size_t mlen; struct RequestContext *rc; mlen = ntohs (msg->header.size) - sizeof (*msg); for (rc = exit->receive_queue_head; NULL != rc; rc = rc->next) { - if (dns.id == rc->dns_id) + if (msg->dns.id == rc->dns_id) { GNUNET_STATISTICS_update (stats, gettext_noop ("# DNS replies received"),