diff options
author | Christopher Faylor <me@cgf.cx> | 2001-12-04 22:02:32 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-12-04 22:02:32 +0000 |
commit | 64dc6a210559bb170f8210372de1d80355a1e041 (patch) | |
tree | 7411b56ef7236896843a6ce8624db3576e1de006 | |
parent | fdbc0502c6af8c5715266bfe215a0e7622cd833a (diff) | |
download | newlib-github/unlabeled-1.90.2.1.4.zip newlib-github/unlabeled-1.90.2.1.4.tar.gz newlib-github/unlabeled-1.90.2.1.4.tar.bz2 |
* net.cc (cygwin_getsockopt): Dereference optlen pointer when passing togithub/unlabeled-1.90.2.1.4unlabeled-1.90.2.1.4
__check_null_invalid_struct_errno.
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 512dd6f..6701269 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 */ |