diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-23 15:36:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-23 15:36:01 +0000 |
commit | 370d0332d12394caeeaeafcfad406c12d11121fb (patch) | |
tree | 946ea9298b3f8b63fa0747fc1498706fbaccccfb /src/gns/gnunet-service-gns_resolver.c | |
parent | e1021601b1c0f17ab7ffd51badecc247902e0e2a (diff) | |
download | gnunet-370d0332d12394caeeaeafcfad406c12d11121fb.tar.gz gnunet-370d0332d12394caeeaeafcfad406c12d11121fb.zip |
return GNS2DNS records if explicitly requested
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 580233da3..de9e87f24 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -1710,6 +1710,11 @@ handle_gns_resolution_result (void *cls, | |||
1710 | case GNUNET_GNSRECORD_TYPE_GNS2DNS: | 1710 | case GNUNET_GNSRECORD_TYPE_GNS2DNS: |
1711 | { | 1711 | { |
1712 | /* delegation to DNS */ | 1712 | /* delegation to DNS */ |
1713 | if (GNUNET_GNSRECORD_TYPE_GNS2DNS == rh->record_type) | ||
1714 | { | ||
1715 | rd_off++; | ||
1716 | break; /* do not follow to DNS, we wanted the GNS2DNS record! */ | ||
1717 | } | ||
1713 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1718 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1714 | "Found GNS2DNS record, delegating to DNS!\n"); | 1719 | "Found GNS2DNS record, delegating to DNS!\n"); |
1715 | goto do_recurse; | 1720 | goto do_recurse; |