Commit 1ca116da authored by deuce's avatar deuce
Browse files

Fix unterminated string usage.

parent 472692f7
......@@ -5451,7 +5451,7 @@ NO_SSH:
i=cryptGetAttributeString(sbbs->ssh_session, CRYPT_SESSINFO_SSH_CHANNEL_TYPE, tname, &tnamelen);
GCESS(i, client_socket, sbbs->ssh_session, "getting channel type");
if (tnamelen != 7 || strnicmp(tname, "session", 7)) {
lprintf(LOG_INFO, "%04d SSH active channel '%s' is not 'session', disconnecting.", client_socket, tname);
lprintf(LOG_INFO, "%04d SSH active channel '%.*s' is not 'session', disconnecting.", client_socket, tnamelen, tname);
loginFailure(startup->login_attempt_list, &client_addr, "SSH", NULL, NULL);
// Fail because there's no session.
ssh_failed = 3;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment