Explorar o código

ipops: reset address types for new dns queries

Daniel-Constantin Mierla %!s(int64=12) %!d(string=hai) anos
pai
achega
257225e691
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      modules/ipops/ipops_pv.c

+ 2 - 0
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';