[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35423 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35423 - gnunet/src/gns |
Date: |
Mon, 23 Mar 2015 16:37:16 +0100 |
Author: grothoff
Date: 2015-03-23 16:37:15 +0100 (Mon, 23 Mar 2015)
New Revision: 35423
Modified:
gnunet/src/gns/gnunet-service-gns_resolver.c
Log:
fix segv if additional records are more than authority records due to field
confusion
Modified: gnunet/src/gns/gnunet-service-gns_resolver.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns_resolver.c 2015-03-23 15:36:01 UTC
(rev 35422)
+++ gnunet/src/gns/gnunet-service-gns_resolver.c 2015-03-23 15:37:15 UTC
(rev 35423)
@@ -891,7 +891,7 @@
else if (i < p->num_answers + p->num_authority_records)
rec = &p->authority_records[i - p->num_answers];
else
- rec = &p->authority_records[i - p->num_answers -
p->num_authority_records];
+ rec = &p->additional_records[i - p->num_answers -
p->num_authority_records];
/* As we copied the full DNS name to 'rh->ac_tail->label', this
should be the correct check to see if this record is actually
a record for our label... */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35423 - gnunet/src/gns,
gnunet <=