Merge "res_xmpp: Correctly check return value of SSL_connect"

changes/18/5318/1
zuul 9 years ago committed by Gerrit Code Review
commit 1a626ffb89

@ -2689,7 +2689,7 @@ static int xmpp_client_requested_tls(struct ast_xmpp_client *client, struct ast_
goto failure;
}
if (!SSL_connect(client->ssl_session)) {
if (SSL_connect(client->ssl_session) <= 0) {
goto failure;
}

Loading…
Cancel
Save