Browse Source

fix uninitialized variable in new __res_msend dns function

Rich Felker 10 years ago
parent
commit
a2a328bd89
1 changed files with 1 additions and 0 deletions
  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;