[sr-dev] git:master: ipops: reset address types for new dns queries

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 15 23:46:32 CEST 2013


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Jul 15 23:38:25 2013 +0200

ipops: reset address types for new dns queries

---

 modules/ipops/ipops_pv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/ipops/ipops_pv.c b/modules/ipops/ipops_pv.c
index e1b38e5..08be1fe 100644
--- a/modules/ipops/ipops_pv.c
+++ b/modules/ipops/ipops_pv.c
@@ -375,6 +375,8 @@ int dns_update_pv(str *hostname, str *name)
 
 	/* reset the counter */
 	dr->count = 0;
+	dr->ipv4  = 0;
+	dr->ipv6  = 0;
 
 	strncpy(dr->hostname, hostname->s, hostname->len);
 	dr->hostname[hostname->len] = '\0';




More information about the sr-dev mailing list