diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp index 788089889eb5a0b1cb941b22df2e0e4d55cae810..674df18b384a141c8e056d41db3606624b6bd138 100755 --- 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)) {