]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_xmpp: fix inverted return code check in OAuth
authorMichael Kuron <m.kuron@gmx.de>
Sun, 20 Aug 2017 13:15:37 +0000 (15:15 +0200)
committerMichael Kuron <m.kuron@gmx.de>
Tue, 22 Aug 2017 05:35:59 +0000 (00:35 -0500)
commitac6a905bb2ddc461a16b3c17ef3b2daf9756820b
tree13539ea5d258167232ad548d8fa67d6834cd79a6
parent29a8488ced5f81561a4a4edea039edc9a3c4d16b
res_xmpp: fix inverted return code check in OAuth

fetch_access_token calls func_curl via ast_func_read. The latter returns 0 upon
success and -1 if the function is not available.
This commit inverts the return code check so that an error is printed if the
module is not loaded and not if it is loaded.

ASTERISK-27207 #close

Change-Id: I9ef903f80702d1218e8701f65a4e5e918e6548fb
res/res_xmpp.c