summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-08-22 07:50:38 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-08-22 07:50:38 -0500
commit4246900c0157ddd04e7a30a5cde04a7d09245dde (patch)
treeab0d2275cc638df36fc8b6c9fc44873662efaadc /res
parent9241840638962cdf92430ed408e60962603bcf1e (diff)
parent83f6b1118c3f184f7a1f47bd8e50fdd5278352ab (diff)
Merge "res_xmpp: fix inverted return code check in OAuth" into 14
Diffstat (limited to 'res')
-rw-r--r--res/res_xmpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_xmpp.c b/res/res_xmpp.c
index 09af0b918..f5bac130a 100644
--- a/res/res_xmpp.c
+++ b/res/res_xmpp.c
@@ -3917,7 +3917,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;