summaryrefslogtreecommitdiff
path: root/TelnetV6.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-08-17 22:31:27 +0100
committerDave Hibberd <hibby@debian.org>2025-08-17 22:31:27 +0100
commite925e16114a18c7a0db4c016c176a149f5f67ab3 (patch)
treef7e3ceca5c9120904025448ce923b47c926d5b53 /TelnetV6.c
parent3e1cbdfa4d40ec5e6fba35446501ba933ae1451e (diff)
New upstream version 6.0.24.82+repackupstream/6.0.24.82+repack
Diffstat (limited to 'TelnetV6.c')
-rw-r--r--TelnetV6.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/TelnetV6.c b/TelnetV6.c
index a0a0272..0756447 100644
--- a/TelnetV6.c
+++ b/TelnetV6.c
@@ -5018,23 +5018,20 @@ int DataSocket_ReadHTTP(struct TNCINFO * TNC, struct ConnectionInfo * sockptr, S
{
// Failed or closed - clear connection
- // if Websock connection till app
+ // if Websock connection tell app
if (sockptr->WebSocks)
{
if (memcmp(sockptr->WebURL, "rhp", 3) == 0)
- {
ProcessRHPWebSockClosed(sockptr->socket);
- DataSocket_Disconnect(TNC, sockptr);
- return 0;
- }
- }
- else
- {
- TNC->Streams[sockptr->Number].ReportDISC = TRUE; //Tell Node
+
DataSocket_Disconnect(TNC, sockptr);
return 0;
}
+
+ TNC->Streams[sockptr->Number].ReportDISC = TRUE; //Tell Node
+ DataSocket_Disconnect(TNC, sockptr);
+ return 0;
}
MsgPtr = &sockptr->InputBuffer[0];