Corrected certificate authentication.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-10-29 20:20:25 +01:00
parent b50aef1a8f
commit 69fd310f63

View File

@@ -437,6 +437,13 @@ int handle_commands(main_server_st *s, struct proc_st* proc)
return ret;
}
break; /* wait for another command */
} else if (ret == 0) {
ret = accept_user(s, proc, cmd);
if (ret < 0) {
goto cleanup;
}
proc->auth_status = PS_AUTH_COMPLETED;
goto cleanup;
} else if (ret < 0) {
add_to_ip_ban_list(s, &proc->remote_addr, proc->remote_addr_len);
goto cleanup;