mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
2003-02-25 Roland McGrath <roland@redhat.com>
* resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is zero, inidicating _res was not initialized yet.
This commit is contained in:
parent
73983ece25
commit
c30dcea16f
@ -567,6 +567,10 @@ libc_hidden_def (__res_nclose)
|
||||
static void __attribute__ ((section ("__libc_thread_freeres_fn")))
|
||||
res_thread_freeres (void)
|
||||
{
|
||||
if (_res.nscount == 0)
|
||||
/* Never called res_ninit. */
|
||||
return;
|
||||
|
||||
__res_nclose (&_res); /* Close any VC sockets. */
|
||||
|
||||
for (int ns = 0; ns < MAXNS; ns++)
|
||||
|
Loading…
Reference in New Issue
Block a user