Commit 771ef6f0 authored by deuce's avatar deuce
Browse files

badlogin() can't be used for SSH sessions that are terminated early, this

code merely introduced a 5 second delay in the Node 0 thread.
parent 82dc3409
......@@ -5466,17 +5466,6 @@ NO_SSH:
}
}
if(ssh_failed) {
if (ssh_failed > 1) {
identity = get_crypt_attribute(sbbs->ssh_session, CRYPT_SESSINFO_USERNAME);
p = get_crypt_attribute(sbbs->ssh_session, CRYPT_SESSINFO_PASSWORD);
sbbs->badlogin(identity, p);
if (identity != NULL)
free_crypt_attrstr(identity);
identity = NULL;
if (p != NULL)
free_crypt_attrstr(p);
p = NULL;
}
cryptDestroySession(sbbs->ssh_session);
close_socket(client_socket);
continue;
......
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