diff options
-rw-r--r-- | lib/libc/resolv/res_state.c | 2 |
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); } |