From 41b0e71e94ef92a05a14c46fa7fbce30ab0b6f7f Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 28 Jan 2007 07:54:01 +0000 Subject: [PATCH] Don't check for ext being NULL to destroy the res_state. Instead check the option bits like we did before. --- lib/libc/resolv/res_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c index 0f87c46a6b02..2f88f5ed032e 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -1,4 +1,4 @@ -/* $NetBSD: res_init.c,v 1.10 2007/01/27 23:02:12 christos Exp $ */ +/* $NetBSD: res_init.c,v 1.11 2007/01/28 07:54:01 christos Exp $ */ /* * Copyright (c) 1985, 1989, 1993 @@ -76,7 +76,7 @@ static const char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; static const char rcsid[] = "Id: res_init.c,v 1.16.18.5 2006/08/30 23:23:13 marka Exp"; #else -__RCSID("$NetBSD: res_init.c,v 1.10 2007/01/27 23:02:12 christos Exp $"); +__RCSID("$NetBSD: res_init.c,v 1.11 2007/01/28 07:54:01 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -186,7 +186,7 @@ __res_vinit(res_state statp, int preinit) { int dots; union res_sockaddr_union u[2]; - if (statp->_u._ext.ext != NULL) + if ((statp->options & RES_INIT) != 0U) res_ndestroy(statp); if (!preinit) {