summaryrefslogtreecommitdiff
path: root/NETROMTCP.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-03-08 02:27:19 +0000
committerDave Hibberd <hibby@debian.org>2026-03-08 02:27:19 +0000
commit90bbe9abf9996c82667d3e4f58b4e3db77129e48 (patch)
treea3c1d7b3c884e3f3182db11968e94a8eb538e3f9 /NETROMTCP.c
parent4f0df4999cd0f9e425a93dc08080b4084634c450 (diff)
parent7aa6cec9300c8a3e9ef98b19791ad324d487512e (diff)
Update upstream source from tag 'upstream/6.0.25.33+repack'
Update to upstream version '6.0.25.33+repack' with Debian dir 8c0c36c05c355f6cb21140b2ebd58907087b1423
Diffstat (limited to 'NETROMTCP.c')
-rw-r--r--NETROMTCP.c16
1 files changed, 14 insertions, 2 deletions
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;