Don't check for ext being NULL to destroy the res_state. Instead check
the option bits like we did before.
This commit is contained in:
parent
5959955102
commit
41b0e71e94
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue