From: John Hodge Date: Tue, 19 Aug 2014 07:47:00 +0000 (+0800) Subject: Kernel/IPStack - Fix TCP node size being zero instead of -1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=17b6125504e385c169193f3c8e29ced340425979;p=tpg%2Facess2.git Kernel/IPStack - Fix TCP node size being zero instead of -1 --- diff --git a/KernelLand/Modules/IPStack/tcp.c b/KernelLand/Modules/IPStack/tcp.c index fcfdaaa4..b431686d 100644 --- a/KernelLand/Modules/IPStack/tcp.c +++ b/KernelLand/Modules/IPStack/tcp.c @@ -346,6 +346,7 @@ int TCP_INT_HandleServerPacket(tInterface *Interface, tTCPListener *Server, cons conn->LastACKSequence = ntohl( Header->SequenceNumber ); conn->Node.ImplInt = Server->NextID ++; + conn->Node.Size = -1; // Hmm... Theoretically, this lock will never have to wait, // as the interface is locked to the watching thread, and this @@ -900,6 +901,7 @@ tTCPConnection *TCP_int_CreateConnection(tInterface *Interface, enum eTCPConnect conn->LocalPort = -1; conn->RemotePort = -1; + conn->Node.Size = -1; conn->Node.ReferenceCount = 1; conn->Node.ImplPtr = conn; conn->Node.NumACLs = 1;