summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/shibari_packet_tdb_answer_query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/shibari_packet_tdb_answer_query.c b/src/server/shibari_packet_tdb_answer_query.c
index a22927f..2627efb 100644
--- a/src/server/shibari_packet_tdb_answer_query.c
+++ b/src/server/shibari_packet_tdb_answer_query.c
@@ -64,6 +64,7 @@ unsigned int shibari_packet_tdb_answer_query (shibari_packet *pkt, cdb const *td
}
switch (entry.type)
{
+ case SHIBARI_T_SOA : goto got ; /* wtf tinydns-data putting several SOA */
case SHIBARI_T_NS :
case SHIBARI_T_MX :
case SHIBARI_T_CNAME : /* we're not supposed to but meh */
@@ -75,6 +76,7 @@ unsigned int shibari_packet_tdb_answer_query (shibari_packet *pkt, cdb const *td
wildpos += 1 + q->s[wildpos] ;
}
+ got:
if (!flagyxdomain) pkt->hdr.rcode = 3 ;
if (!pkt->hdr.counts.an)