Author: cgutman
Date: Wed Jan 27 08:44:42 2010
New Revision: 45283
URL:
http://svn.reactos.org/svn/reactos?rev=45283&view=rev
Log:
- Handle the case where a socket sends an event notification without being accepted
first
Modified:
branches/aicom-network-branch/lib/drivers/ip/transport/tcp/event.c
Modified: branches/aicom-network-branch/lib/drivers/ip/transport/tcp/event.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/lib/driver…
==============================================================================
--- branches/aicom-network-branch/lib/drivers/ip/transport/tcp/event.c [iso-8859-1]
(original)
+++ branches/aicom-network-branch/lib/drivers/ip/transport/tcp/event.c [iso-8859-1] Wed
Jan 27 08:44:42 2010
@@ -24,7 +24,14 @@
NewState & SEL_ACCEPT ? 'A' : 'a',
NewState & SEL_WRITE ? 'W' : 'w'));
- ASSERT(Connection);
+ /* If this socket is missing its socket context, that means that it
+ * has been created as a new connection in sonewconn but not accepted
+ * yet. We can safely ignore event notifications on these sockets.
+ * Once they are accepted, they will get a socket context and we will
+ * be able to process them.
+ */
+ if (!Connection)
+ return 0;
TI_DbgPrint(DEBUG_TCP,("Called: NewState %x (Conn %x) (Change %x)\n",
NewState, Connection,