better loggin on auth error
This commit is contained in:
parent
e9884c5b03
commit
43384d8bd5
@ -1135,11 +1135,13 @@ static int SSLize(connection_t *cn, int *nc)
|
||||
if (len > 0)
|
||||
buf[len-1] = '\0';
|
||||
mylog(LOG_DEBUG, "Negociated cyphers: %s",buf);
|
||||
/* if (SSL_get_verify_result(cn->ssl_h) != X509_V_OK) {
|
||||
/*
|
||||
if (SSL_get_verify_result(cn->ssl_h) != X509_V_OK) {
|
||||
mylog(LOG_ERROR, "Invalid certificate !");
|
||||
cn->connected = CONN_ERROR;
|
||||
return 1;
|
||||
}*/
|
||||
}
|
||||
*/
|
||||
cn->connected = CONN_OK;
|
||||
*nc = 1;
|
||||
return 0;
|
||||
|
@ -567,6 +567,10 @@ static int irc_cli_startup(struct link_client *ic, struct line *line,
|
||||
}
|
||||
}
|
||||
|
||||
if (!LINK(ic))
|
||||
mylog(LOG_ERROR, "Invalid credentials (user: %s realname:%s)",
|
||||
ic->init_user, ic->init_real_name);
|
||||
|
||||
free(ic->init_pass);
|
||||
ic->init_pass = NULL;
|
||||
init_nick = ic->init_nick;
|
||||
@ -2054,10 +2058,8 @@ void irc_main(connection_t *inc, list_t *ll)
|
||||
"closing...");
|
||||
goto prot_err_lines;
|
||||
}
|
||||
if (r == ERR_AUTH) {
|
||||
mylog(LOG_ERROR, "Invalid credentials");
|
||||
if (r == ERR_AUTH)
|
||||
goto prot_err_lines;
|
||||
}
|
||||
/* XXX: not real error */
|
||||
if (r == OK_CLOSE)
|
||||
goto prot_err_lines;
|
||||
|
Loading…
x
Reference in New Issue
Block a user