Ver código fonte

ipops: reset address types for new dns queries

Daniel-Constantin Mierla 12 anos atrás
pai
commit
257225e691
1 arquivos alterados com 2 adições e 0 exclusões
  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';