projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73983ec
)
2003-02-25 Roland McGrath <roland@redhat.com>
author
Roland McGrath
<roland@gnu.org>
Tue, 25 Feb 2003 09:18:17 +0000
(09:18 +0000)
committer
Roland McGrath
<roland@gnu.org>
Tue, 25 Feb 2003 09:18:17 +0000
(09:18 +0000)
* resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
zero, inidicating _res was not initialized yet.
resolv/res_init.c
patch
|
blob
|
history
diff --git
a/resolv/res_init.c
b/resolv/res_init.c
index
459694f
..
7b9cf43
100644
(file)
--- a/
resolv/res_init.c
+++ b/
resolv/res_init.c
@@
-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++)