summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-04-08 18:19:35 +0000
committerume <ume@FreeBSD.org>2006-04-08 18:19:35 +0000
commita48ae17ef634d5fff2442956cbd2881a9caa01ef (patch)
treeba76af5b4420632863bef7cd4e403bd7c451af62 /lib
parent7d0c23506ce44c37be9f669bdc1ec0ff37e66d50 (diff)
downloadFreeBSD-src-a48ae17ef634d5fff2442956cbd2881a9caa01ef.zip
FreeBSD-src-a48ae17ef634d5fff2442956cbd2881a9caa01ef.tar.gz
Don't test if RES_INIT is set to see res_state structure is
initialized. Some application may reset RES_INIT. Use the way in __res_vinit(), instead.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/resolv/res_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/resolv/res_state.c b/lib/libc/resolv/res_state.c
index 542dba8..b2742ce 100644
--- a/lib/libc/resolv/res_state.c
+++ b/lib/libc/resolv/res_state.c
@@ -48,7 +48,7 @@ free_res(void *ptr)
{
res_state statp = ptr;
- if (statp->options & RES_INIT)
+ if (statp->_u._ext.ext != NULL)
res_ndestroy(statp);
free(statp);
}
OpenPOWER on IntegriCloud