aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-23 15:37:15 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-23 15:37:15 +0000
commitd2a30f5b1e1d53312b24bbc2dae59d80a2b8ecf1 (patch)
treeb7210a0f46e447f127be0c722a25319fa66c30f5 /src/gns
parent370d0332d12394caeeaeafcfad406c12d11121fb (diff)
downloadgnunet-d2a30f5b1e1d53312b24bbc2dae59d80a2b8ecf1.tar.gz
gnunet-d2a30f5b1e1d53312b24bbc2dae59d80a2b8ecf1.zip
fix segv if additional records are more than authority records due to field confusion
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index de9e87f24..96d62afb8 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -891,7 +891,7 @@ dns_result_parser (void *cls,
891 else if (i < p->num_answers + p->num_authority_records) 891 else if (i < p->num_answers + p->num_authority_records)
892 rec = &p->authority_records[i - p->num_answers]; 892 rec = &p->authority_records[i - p->num_answers];
893 else 893 else
894 rec = &p->authority_records[i - p->num_answers - p->num_authority_records]; 894 rec = &p->additional_records[i - p->num_answers - p->num_authority_records];
895 /* As we copied the full DNS name to 'rh->ac_tail->label', this 895 /* As we copied the full DNS name to 'rh->ac_tail->label', this
896 should be the correct check to see if this record is actually 896 should be the correct check to see if this record is actually
897 a record for our label... */ 897 a record for our label... */