diff options
author | Joshua Colp <jcolp@digium.com> | 2017-08-22 07:57:00 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-08-22 07:57:00 -0500 |
commit | b7c27e1c84c430093961439e5d2a955a9c4f7d81 (patch) | |
tree | e4f7616cd0fa5cf44c8afe9c4bc6c38f166cdf31 /res | |
parent | 0bb4a9117ea79762b72e78237943120997cf7521 (diff) | |
parent | ac6a905bb2ddc461a16b3c17ef3b2daf9756820b (diff) |
Merge "res_xmpp: fix inverted return code check in OAuth" into 15
Diffstat (limited to 'res')
-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 f8eb50599..444eacbe9 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -3915,7 +3915,7 @@ static int fetch_access_token(struct ast_xmpp_client_config *cfg) ast_debug(2, "Performing OAuth 2.0 authentication for client '%s' using command: %s\n", cfg->name, cmd); - if (!ast_func_read(NULL, cmd, cBuf, sizeof(cBuf) - 1)) { + if (ast_func_read(NULL, cmd, cBuf, sizeof(cBuf) - 1)) { ast_log(LOG_ERROR, "CURL is unavailable. This is required for OAuth 2.0 authentication of XMPP client '%s'. Please ensure it is loaded.\n", cfg->name); return -1; |