Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
1ca116da
Commit
1ca116da
authored
Mar 15, 2018
by
deuce
Browse files
Fix unterminated string usage.
parent
472692f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/main.cpp
src/sbbs3/main.cpp
+1
-1
No files found.
src/sbbs3/main.cpp
View file @
1ca116da
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment