Author: jgardou
Date: Thu Oct 16 20:15:33 2014
New Revision: 64769
URL:
http://svn.reactos.org/svn/reactos?rev=64769&view=rev
Log:
[TCPIP]
- Fix potential NULL pointer dereference
Modified:
trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c
Modified: trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/transport/t…
==============================================================================
--- trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] Thu Oct 16 20:15:33
2014
@@ -679,8 +679,12 @@
PCONNECTION_ENDPOINT Connection,
BOOLEAN Set)
{
+ if (!Connection)
+ return STATUS_UNSUCCESSFUL;
+
if (Connection->SocketContext == NULL)
return STATUS_UNSUCCESSFUL;
+
LibTCPSetNoDelay(Connection->SocketContext, Set);
return STATUS_SUCCESS;
}