diff options
author | Christopher Faylor <me@cgf.cx> | 2001-12-04 22:01:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-12-04 22:01:03 +0000 |
commit | 958348a4cfd9ec9dbfb6df69643e0de3b800b773 (patch) | |
tree | 45172efc6b832c089640aab7599d909e66179604 /winsup/cygwin/net.cc | |
parent | 937b5e4d0423181cc231f7240342ce573e75975e (diff) | |
download | cygnal-958348a4cfd9ec9dbfb6df69643e0de3b800b773.tar.gz cygnal-958348a4cfd9ec9dbfb6df69643e0de3b800b773.tar.bz2 cygnal-958348a4cfd9ec9dbfb6df69643e0de3b800b773.zip |
* 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.cc | 2 |
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 */ |