(__res_vinit): Initialize it.
authordrepper <drepper>
Fri, 5 Jan 2001 02:35:58 +0000 (02:35 +0000)
committerdrepper <drepper>
Fri, 5 Jan 2001 02:35:58 +0000 (02:35 +0000)
(res_nclose): Clear it instead of nscount.

resolv/res_init.c

index fa60b77..1b14f94 100644 (file)
@@ -177,6 +177,7 @@ __res_vinit(res_state statp, int preinit) {
        statp->_flags = 0;
        statp->qhook = NULL;
        statp->rhook = NULL;
+       statp->_u._ext.nsinit = 0;
        statp->_u._ext.nscount = 0;
 #ifdef _LIBC
        statp->_u._ext.nscount6 = 0;
@@ -544,5 +545,5 @@ res_nclose(res_state statp) {
                        statp->_u._ext.nssocks[ns] = -1;
                }
        }
-       statp->_u._ext.nscount = 0;
+       statp->_u._ext.nsinit = 0;
 }