浏览代码

core:resolve.c Added counter increment on error case for another function present in the interface

TThe get_record() is called when resolving new entries in dns_cache(if compiled).
Marius Zbihlei 15 年之前
父节点
当前提交
506d54309c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      resolve.c

+ 2 - 0
resolve.c

@@ -990,6 +990,8 @@ error:
 		LOG(L_ERR, "ERROR: get_record \n");
 		if (head) free_rdata_list(head);
 not_found:
+	/* increment error counter */
+	counter_inc(dns_cnts_h.failed_dns_req);
 	return 0;
 }