소스 검색

fix uninitialized variable in new __res_msend dns function

Rich Felker 10 년 전
부모
커밋
a2a328bd89
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/network/res_msend.c

+ 1 - 0
src/network/res_msend.c

@@ -131,6 +131,7 @@ int __res_msend(int nqueries, const unsigned char *const *queries,
 	pfd.fd = fd;
 	pfd.events = POLLIN;
 	retry_interval = timeout / attempts;
+	next = 0;
 	t0 = t2 = mtime();
 	t1 = t2 - retry_interval;