diff options
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/res_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index 4c170be684..553ba12a5a 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -621,7 +621,8 @@ __res_iclose(res_state statp, bool free_addr) { statp->_u._ext.nsaddrs[ns] = NULL; } } - statp->_u._ext.nsinit = 0; + if (free_addr) + statp->_u._ext.nsinit = 0; } libc_hidden_def (__res_iclose) |