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:02:32 +0300
committerChristopher Faylor <me@cgf.cx>2001-12-05 01:02:32 +0300
commit64dc6a210559bb170f8210372de1d80355a1e041 (patch)
tree7411b56ef7236896843a6ce8624db3576e1de006
parentfdbc0502c6af8c5715266bfe215a0e7622cd833a (diff)
* net.cc (cygwin_getsockopt): Dereference optlen pointer when passing tounlabeled-1.90.2.1.4
__check_null_invalid_struct_errno.
-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 */