diff --git a/src/connection.c b/src/connection.c index d5aa086..929a9f2 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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; diff --git a/src/irc.c b/src/irc.c index b0898f0..c86e6a5 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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;