瀏覽代碼

* Ignore subsequent replies when getting NXDOMAIN (ignore the AAAA's NXDOMAIN)

Bryan Drewery 17 年之前
父節點
當前提交
0430eff5eb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/adns.c

+ 2 - 0
src/adns.c

@@ -945,6 +945,8 @@ static int parse_reply(char *response, size_t nbytes, const char* server_ip)
                   break;
             case 3:   /* Name error */
                   sdprintf("Ignoring reply(%d) from %s: NXDOMAIN.", header.id, server_ip);
+                  /* Ignore the incoming AAAA or A reply as it will still be NXDOMAIN */
+		  q->remaining = 0;		/* Force this query to be removed, any further answers are ignored */
                   break;
             case 4:
                   sdprintf("Ignoring reply(%d) from %s: Query not supported", header.id, server_ip);