Merge "res_xmpp: Correctly check return value of SSL_connect"

This commit is contained in:
zuul 2017-03-24 09:13:06 -05:00 committed by Gerrit Code Review
commit 1a626ffb89
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}