Browse code

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 authored on 12/08/2010 09:14:59
Showing 1 changed files
... ...
@@ -990,6 +990,8 @@ error:
990 990
 		LOG(L_ERR, "ERROR: get_record \n");
991 991
 		if (head) free_rdata_list(head);
992 992
 not_found:
993
+	/* increment error counter */
994
+	counter_inc(dns_cnts_h.failed_dns_req);
993 995
 	return 0;
994 996
 }
995 997