Skip to content
Snippets Groups Projects
Commit fca1c00e authored by rswindell's avatar rswindell
Browse files

Fix uninitialized SSH password logging bug.

parent 5d16e4cc
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,7 @@ bool sbbs_t::answer()
}
#ifdef USE_CRYPTLIB
if(sys_status&SS_SSH) {
tmp[0]=0;
pthread_mutex_lock(&ssh_mutex);
ctmp = get_crypt_attribute(ssh_session, CRYPT_SESSINFO_USERNAME);
if (ctmp) {
......@@ -201,8 +202,6 @@ bool sbbs_t::answer()
SAFECOPY(tmp, ctmp);
free_crypt_attrstr(ctmp);
}
else
tmp[0] = 0;
pthread_mutex_unlock(&ssh_mutex);
lprintf(LOG_DEBUG,"Node %d SSH login: '%s'"
,cfg.node_num, rlogin_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment