Sfoglia il codice sorgente

ipops: reset address types for new dns queries

Daniel-Constantin Mierla 12 anni fa
parent
commit
257225e691
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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';