diff options
author | zuul <zuul@gerrit.asterisk.org> | 2017-03-24 09:13:06 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-03-24 09:13:06 -0500 |
commit | 1a626ffb898e05fa3dee56d92c4346c3c3c0db38 (patch) | |
tree | 77a79daa29f5b9c5a0896179bbfc1167490f82e5 /res/res_xmpp.c | |
parent | d3ca0e0bc49feee43a4940e983e6bbd08ae68b29 (diff) | |
parent | 9493981419f86ee19c637a8ff1666af5b80375ad (diff) |
Merge "res_xmpp: Correctly check return value of SSL_connect"
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 4e6685291..6abfdbc60 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -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; } |