[sr-dev] git:master: core:resolve. c Added counter increment on error case for another function present in the interface

Marius Zbihlei marius.zbihlei at 1and1.ro
Thu Aug 12 11:33:56 CEST 2010


Module: sip-router
Branch: master
Commit: 506d54309c6c145f349ff1e44e3ae8410c7b642b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=506d54309c6c145f349ff1e44e3ae8410c7b642b

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Thu Aug 12 12:14:59 2010 +0300

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).

---

 resolve.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/resolve.c b/resolve.c
index 9aedd85..a106315 100644
--- a/resolve.c
+++ b/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;
 }
 




More information about the sr-dev mailing list