aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-07 00:07:49 +0000
committerChristopher Faylor <me@cgf.cx>2001-09-07 00:07:49 +0000
commit04da0bbe2fc1e0d5d87a5f29a0613368d6bf022f (patch)
tree79d74907272ff0a96b9c660d43c139bc645d62e9 /winsup
parentb2bfade325e73c2f5c2c2bbe056d06dc9df04fa4 (diff)
downloadnewlib-04da0bbe2fc1e0d5d87a5f29a0613368d6bf022f.zip
newlib-04da0bbe2fc1e0d5d87a5f29a0613368d6bf022f.tar.gz
newlib-04da0bbe2fc1e0d5d87a5f29a0613368d6bf022f.tar.bz2
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that
prot_info_ptr is zeroed for later use.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_socket.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7afb90b..55d6a64 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index aabaa47..a434a01 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -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));
}