diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-03-23 10:30:18 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-03-23 08:58:05 -0600 |
commit | 9493981419f86ee19c637a8ff1666af5b80375ad (patch) | |
tree | f9034a05487ea2c08574c3067a9b8d2148cdf4ee /res/res_xmpp.c | |
parent | c1ab8ca74cec45730107cca3ed47fc61460365e4 (diff) |
res_xmpp: Correctly check return value of SSL_connect
SSL_connect returns non-zero for both success and some error conditions
so simply negating is inadequate.
Change-Id: Ifbf882896e598703b6c615407fa456d3199f95b1
Diffstat (limited to 'res/res_xmpp.c')
-rw-r--r-- | res/res_xmpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 1aa865cd6..ddd4a5722 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -2670,7 +2670,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; } |