Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-12-05 01:01:03 +0300
committerChristopher Faylor <me@cgf.cx>2001-12-05 01:01:03 +0300
commit958348a4cfd9ec9dbfb6df69643e0de3b800b773 (patch)
tree45172efc6b832c089640aab7599d909e66179604 /winsup/cygwin/net.cc
parent937b5e4d0423181cc231f7240342ce573e75975e (diff)
* net.cc (cygwin_getsockopt): Dereference optlen pointer when passing to
__check_null_invalid_struct_errno.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 512dd6f73..670126934 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -799,7 +799,7 @@ cygwin_getsockopt (int fd,
int res = -1;
const char *name = "error";
if (!check_null_invalid_struct_errno (optlen)
- && (!optval || !__check_null_invalid_struct_errno (optval, (unsigned) optlen))
+ && (!optval || !__check_null_invalid_struct_errno (optval, (unsigned) *optlen))
&& h)
{
/* For the following debug_printf */