mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:22:58 +00:00
[TCPIP]
- Fix potential NULL pointer dereference svn path=/trunk/; revision=64769
This commit is contained in:
parent
e9067c2bda
commit
6b2a5b98f0
1 changed files with 4 additions and 0 deletions
|
@ -679,8 +679,12 @@ TCPSetNoDelay(
|
|||
PCONNECTION_ENDPOINT Connection,
|
||||
BOOLEAN Set)
|
||||
{
|
||||
if (!Connection)
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
|
||||
if (Connection->SocketContext == NULL)
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
|
||||
LibTCPSetNoDelay(Connection->SocketContext, Set);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue