diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-24 14:29:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-24 14:29:03 +0000 |
commit | d1c2a45d0af706632b83d1bb0590a96bf4e59087 (patch) | |
tree | 97abe7b696dd1984975dd85c7602d96a6e83b8f6 /src/dns | |
parent | 8fb297a546b46ddb45e2b87b8d01a82e8f827ba7 (diff) | |
download | gnunet-d1c2a45d0af706632b83d1bb0590a96bf4e59087.tar.gz gnunet-d1c2a45d0af706632b83d1bb0590a96bf4e59087.zip |
-fix
Diffstat (limited to 'src/dns')
-rw-r--r-- | src/dns/gnunet-service-dns.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c index b35ea6c27..c3c9791a4 100644 --- a/src/dns/gnunet-service-dns.c +++ b/src/dns/gnunet-service-dns.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include "gnunet_signatures.h" | 44 | #include "gnunet_signatures.h" |
45 | #include "dns.h" | 45 | #include "dns.h" |
46 | #include "gnunet_dns_service.h" | 46 | #include "gnunet_dns_service.h" |
47 | #include "gnunet_dnsparser_lib.h" | ||
47 | #include "gnunet_mesh_service.h" | 48 | #include "gnunet_mesh_service.h" |
48 | #include "gnunet_statistics_service.h" | 49 | #include "gnunet_statistics_service.h" |
49 | #include "gnunet_tun_lib.h" | 50 | #include "gnunet_tun_lib.h" |
@@ -1206,6 +1207,16 @@ handle_client_response (void *cls GNUNET_UNUSED, | |||
1206 | rr->client_wait_list_length, | 1207 | rr->client_wait_list_length, |
1207 | 0); | 1208 | 0); |
1208 | } | 1209 | } |
1210 | /* if query changed to answer, move past DNS resolution phase... */ | ||
1211 | if ( (RP_REQUEST_MONITOR == rr->phase) && | ||
1212 | (rr->payload_length > sizeof (struct GNUNET_TUN_DnsHeader)) && | ||
1213 | ((struct GNUNET_DNSPARSER_Flags*)&(((struct GNUNET_TUN_DnsHeader*) rr->payload)->flags))->query_or_response == 1) | ||
1214 | { | ||
1215 | rr->phase = RP_INTERNET_DNS; | ||
1216 | GNUNET_array_grow (rr->client_wait_list, | ||
1217 | rr->client_wait_list_length, | ||
1218 | 0); | ||
1219 | } | ||
1209 | break; | 1220 | break; |
1210 | } | 1221 | } |
1211 | next_phase (rr); | 1222 | next_phase (rr); |