fix uninitialized variable in new __res_msend dns function
authorRich Felker <dalias@aerifal.cx>
Mon, 2 Jun 2014 08:27:54 +0000 (04:27 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 2 Jun 2014 08:27:54 +0000 (04:27 -0400)
src/network/res_msend.c

index cded53531f279c5ad642933ccbc21808656ff131..a5b7793ac5323607a3290ed9104b315eccb535cf 100644 (file)
@@ -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;