diff options
Diffstat (limited to 'src/pt/gnunet-daemon-pt.c')
-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"), |