mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +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,
|
PCONNECTION_ENDPOINT Connection,
|
||||||
BOOLEAN Set)
|
BOOLEAN Set)
|
||||||
{
|
{
|
||||||
|
if (!Connection)
|
||||||
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
|
||||||
if (Connection->SocketContext == NULL)
|
if (Connection->SocketContext == NULL)
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
|
||||||
LibTCPSetNoDelay(Connection->SocketContext, Set);
|
LibTCPSetNoDelay(Connection->SocketContext, Set);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue