Переглянути джерело

ipops: reset address types for new dns queries

Daniel-Constantin Mierla 12 роки тому
батько
коміт
257225e691
1 змінених файлів з 2 додано та 0 видалено
  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 */
 	/* reset the counter */
 	dr->count = 0;
 	dr->count = 0;
+	dr->ipv4  = 0;
+	dr->ipv6  = 0;
 
 
 	strncpy(dr->hostname, hostname->s, hostname->len);
 	strncpy(dr->hostname, hostname->s, hostname->len);
 	dr->hostname[hostname->len] = '\0';
 	dr->hostname[hostname->len] = '\0';