diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-23 15:37:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-23 15:37:15 +0000 |
commit | d2a30f5b1e1d53312b24bbc2dae59d80a2b8ecf1 (patch) | |
tree | b7210a0f46e447f127be0c722a25319fa66c30f5 /src/gns/gnunet-service-gns_resolver.c | |
parent | 370d0332d12394caeeaeafcfad406c12d11121fb (diff) | |
download | gnunet-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/gnunet-service-gns_resolver.c')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 2 |
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... */ |