mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[MSAFD]
- Gracefully handle lpcbBytesReturned == NULL condition in WSPIoctl. Fixes crash in ws2_32:sock svn path=/trunk/; revision=56782
This commit is contained in:
@@ -1968,6 +1968,12 @@ WSPIoctl(IN SOCKET Handle,
|
||||
BOOLEAN NeedsCompletion;
|
||||
BOOLEAN NonBlocking;
|
||||
|
||||
if (!lpcbBytesReturned)
|
||||
{
|
||||
*lpErrno = WSAEFAULT;
|
||||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
/* Get the Socket Structure associate to this Socket*/
|
||||
Socket = GetSocketStructure(Handle);
|
||||
if (!Socket)
|
||||
|
||||
Reference in New Issue
Block a user