Call tls_error when tls_connect_socket fails
parent
cca4b3fa10
commit
6aecd7a712
2
irc.c
2
irc.c
|
@ -86,7 +86,7 @@ int ircConnect(
|
||||||
if (error) err(EX_IOERR, "fcntl");
|
if (error) err(EX_IOERR, "fcntl");
|
||||||
|
|
||||||
error = tls_connect_socket(client, sock, host);
|
error = tls_connect_socket(client, sock, host);
|
||||||
if (error) err(EX_PROTOCOL, "tls_connect");
|
if (error) errx(EX_PROTOCOL, "tls_connect: %s", tls_error(client));
|
||||||
|
|
||||||
if (webPass) webirc(webPass);
|
if (webPass) webirc(webPass);
|
||||||
if (pass) ircFmt("PASS :%s\r\n", pass);
|
if (pass) ircFmt("PASS :%s\r\n", pass);
|
||||||
|
|
Loading…
Reference in New Issue