]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Stasis: Use the correct return value
authorKinsey Moore <kmoore@digium.com>
Mon, 11 Aug 2014 18:46:59 +0000 (18:46 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 11 Aug 2014 18:46:59 +0000 (18:46 +0000)
Return the correct value instead of always returning 0 when setting
internal status on unreal channels.

Reported by: Richard Mudgett
........

Merged revisions 420802 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 420803 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_stasis.c

index 0ef3d6e40fa61ea87681294753c60f315a32e52a..4bf9e4932b7223f15e03dbf31fb09e62ea79fec2 100644 (file)
@@ -1940,7 +1940,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)