[PATCH] Re: Bugs in glibc 2.2

Jakub Jelinek jakub@redhat.com
Sun May 21 05:20:00 GMT 2000


> 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
> 
> 	* resolv/res_libc.c (_res): Initialize _sock to -1.
> 

This is ok but not sufficient:

2000-05-21  Jakub Jelinek  <jakub@redhat.com>

	* manager.c (pthread_handle_create): Initialize p_res._sock to -1.

--- libc/linuxthreads/manager.c.jj	Tue May  9 13:47:36 2000
+++ libc/linuxthreads/manager.c	Sun May 21 13:21:59 2000
@@ -395,6 +395,7 @@ static int pthread_handle_create(pthread
   new_thread->p_canceltype = PTHREAD_CANCEL_DEFERRED;
   new_thread->p_errnop = &new_thread->p_errno;
   new_thread->p_h_errnop = &new_thread->p_h_errno;
+  new_thread->p_res._sock = -1;
   new_thread->p_resp = &new_thread->p_res;
   new_thread->p_guardaddr = guardaddr;
   new_thread->p_guardsize = guardsize;


	Jakub


More information about the Libc-hacker mailing list