소스 검색

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 */
 	dr->count = 0;
+	dr->ipv4  = 0;
+	dr->ipv6  = 0;
 
 	strncpy(dr->hostname, hostname->s, hostname->len);
 	dr->hostname[hostname->len] = '\0';