From 4977e97fb866da77d42ec54cf18b456944296bcd Mon Sep 17 00:00:00 2001 From: luciferWei Date: Sat, 23 Aug 2025 16:23:52 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E8=A7=A3=E5=86=B3session=E4=BB=BF?= =?UTF-8?q?=E5=86=92=20=20\nSigned-off-by:=20LuciferWei=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/daemon/daemon.cpp | 5 +++++ 1 file changed, 5 insertions(+) mode change 100755 => 100644 src/daemon/daemon.cpp diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp old mode 100755 new mode 100644 index 78808988..674df18b --- a/src/daemon/daemon.cpp +++ b/src/daemon/daemon.cpp @@ -806,6 +806,11 @@ bool HdcDaemon::DaemonSessionHandshake(HSession hSession, const uint32_t channel return false; } if (handshake.authType == AUTH_NONE) { + if (GetSessionAuthStatus(handshake.sessionId) != AUTH_NONE) { + WRITE_LOG(LOG_FATAL, "session %u is already, But now session is %u, refused!", + handshake.sessionId, hSession->sessionId); + return false; + } DaemonSessionHandshakeInit(hSession, handshake); } if (!HandDaemonAuth(hSession, channelId, handshake)) { -- Gitee