* net.cc (cygwin_getsockopt): Dereference optlen pointer when passing to
__check_null_invalid_struct_errno.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-04 David Rothenberger <daveroth@acm.org>
|
||||||
|
|
||||||
|
* net.cc (cygwin_getsockopt): Dereference optlen pointer when passing
|
||||||
|
to __check_null_invalid_struct_errno.
|
||||||
|
|
||||||
2001-12-03 Christopher Faylor <cgf@redhat.com>
|
2001-12-03 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* net.cc (cygwin_getsockopt): Allow NULL optval.
|
* net.cc (cygwin_getsockopt): Allow NULL optval.
|
||||||
|
@@ -799,7 +799,7 @@ cygwin_getsockopt (int fd,
|
|||||||
int res = -1;
|
int res = -1;
|
||||||
const char *name = "error";
|
const char *name = "error";
|
||||||
if (!check_null_invalid_struct_errno (optlen)
|
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)
|
&& h)
|
||||||
{
|
{
|
||||||
/* For the following debug_printf */
|
/* For the following debug_printf */
|
||||||
|
Reference in New Issue
Block a user