From: Kinsey Moore Date: Mon, 11 Aug 2014 18:45:11 +0000 (+0000) Subject: Stasis: Use the correct return value X-Git-Tag: 12.5.0-rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9720c086560944fc31c044ba9f56dd57359d57d;p=thirdparty%2Fasterisk.git Stasis: Use the correct return value Return the correct value instead of always returning 0 when setting internal status on unreal channels. Reported by: Richard Mudgett git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@420802 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_stasis.c b/res/res_stasis.c index 80c29e0090..50e1ed7045 100644 --- a/res/res_stasis.c +++ b/res/res_stasis.c @@ -1936,7 +1936,7 @@ int stasis_app_channel_unreal_set_internal(struct ast_channel *chan) } ao2_unlock(unreal_pvt); ao2_ref(unreal_pvt, -1); - return 0; + return res; } int stasis_app_channel_set_internal(struct ast_channel *chan)