diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-23 22:53:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-23 22:55:31 +0100 |
commit | 8f65dd2db3c32e12752592f76833dc66e0bd3f9e (patch) | |
tree | 353af4fc6c1ed5e309b802b1d8310dbb280bd847 /src/pt | |
parent | cb5db4e18f560650d5e36a96a89c2dd41091d797 (diff) | |
download | gnunet-8f65dd2db3c32e12752592f76833dc66e0bd3f9e.tar.gz gnunet-8f65dd2db3c32e12752592f76833dc66e0bd3f9e.zip |
fix use of uninitialized ID after last refactoring
Diffstat (limited to 'src/pt')
-rw-r--r-- | src/pt/gnunet-daemon-pt.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, | |||
864 | const struct DnsResponseMessage *msg) | 864 | const struct DnsResponseMessage *msg) |
865 | { | 865 | { |
866 | struct CadetExit *exit = cls; | 866 | struct CadetExit *exit = cls; |
867 | struct GNUNET_TUN_DnsHeader dns; | ||
868 | size_t mlen; | 867 | size_t mlen; |
869 | struct RequestContext *rc; | 868 | struct RequestContext *rc; |
870 | 869 | ||
871 | mlen = ntohs (msg->header.size) - sizeof (*msg); | 870 | mlen = ntohs (msg->header.size) - sizeof (*msg); |
872 | for (rc = exit->receive_queue_head; NULL != rc; rc = rc->next) | 871 | for (rc = exit->receive_queue_head; NULL != rc; rc = rc->next) |
873 | { | 872 | { |
874 | if (dns.id == rc->dns_id) | 873 | if (msg->dns.id == rc->dns_id) |
875 | { | 874 | { |
876 | GNUNET_STATISTICS_update (stats, | 875 | GNUNET_STATISTICS_update (stats, |
877 | gettext_noop ("# DNS replies received"), | 876 | gettext_noop ("# DNS replies received"), |