diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | resolv/res_init.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 1204575be1..6ba3b8e840 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2015-01-06 Aurelien Jarno <aurelien@aurel32.net> + * resolv/res_init.c (__res_iclose): Only clear nsinit if the + addresses have been freed. + +2015-01-06 Aurelien Jarno <aurelien@aurel32.net> + * resolv/res_init.c (__res_vinit): Improve comments about nserv and nservall. 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) |