From 7aa6cec9300c8a3e9ef98b19791ad324d487512e Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sun, 8 Mar 2026 02:27:14 +0000 Subject: New upstream version 6.0.25.33+repack --- NETROMTCP.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'NETROMTCP.c') diff --git a/NETROMTCP.c b/NETROMTCP.c index acc890c..47f5b57 100644 --- a/NETROMTCP.c +++ b/NETROMTCP.c @@ -481,8 +481,15 @@ checkLen: memcpy(Route->NEIGHBOUR_LINK->LINKCALL, axCall, 7); Route->localport = htons(sockptr->sin.sin_port); - Debugprintf("New NRTCP Connection from %s port %d", Msg->Call, Route->localport); - + if(Route->Stopped) + { + Debugprintf("Neighbour %s port %d Route stopped - closing connection", Msg->Call, portNo); + closesocket(sockptr->socket); + sockptr->SocketActive = FALSE; + memset(sockptr, 0, sizeof(struct ConnectionInfo)); + Info->Call[0] = 0; + return 0; + } if (Info->Route->INP3Node) SendRTTMsg(Info->Route); @@ -675,6 +682,11 @@ void NETROMConnectionLost(struct ConnectionInfo * sockptr) if (Route) { + if (sockptr->Connecting) + TellINP3LinkSetupFailed(Route); + else + TellINP3LinkGone(Route); + Route->NEIGHBOUR_LINK = 0; Route->TCPSession = 0; Route->localport = 0; -- cgit v1.2.3