mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Merge "res_xmpp: Correctly check return value of SSL_connect"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user