From f76963aba11f081a17ca12375133fbb02095dda9 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Sat, 8 Apr 2006 18:19:35 +0000 Subject: [PATCH] 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. --- lib/libc/resolv/res_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/resolv/res_state.c b/lib/libc/resolv/res_state.c index 542dba82405..b2742ce42d3 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); }