Procházet zdrojové kódy

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 před 15 roky
rodič
revize
506d54309c
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
 }