* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that

prot_info_ptr is zeroed for later use.
This commit is contained in:
Christopher Faylor 2001-09-07 00:07:49 +00:00
parent b2bfade325
commit 04da0bbe2f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Sep 6 20:04:05 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that
prot_info_ptr is zeroed for later use.
Thu Sep 6 14:03:49 2001 Christopher Faylor <cgf@cygnus.com>
* cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as

View File

@ -45,7 +45,7 @@ fhandler_socket::fhandler_socket (const char *name) :
{
set_cb (sizeof *this);
set_need_fork_fixup ();
prot_info_ptr = (LPWSAPROTOCOL_INFOA) cmalloc (HEAP_BUF,
prot_info_ptr = (LPWSAPROTOCOL_INFOA) ccalloc (HEAP_BUF, 1,
sizeof (WSAPROTOCOL_INFOA));
}