diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-03-08 02:27:14 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-03-08 02:27:14 +0000 |
| commit | 7aa6cec9300c8a3e9ef98b19791ad324d487512e (patch) | |
| tree | 18c0487da11274dc1c4b67787ef12b1cefa15ae8 /NETROMTCP.c | |
| parent | dae2bbc7215a8361e7b9092e6c307491c7e5722a (diff) | |
New upstream version 6.0.25.33+repackupstream/6.0.25.33+repack
Diffstat (limited to 'NETROMTCP.c')
| -rw-r--r-- | NETROMTCP.c | 16 |
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;
|
