mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
This commit is contained in:
parent
a97944597b
commit
f76963aba1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue