[svn-commits] kmoore: branch 12 r420802 - /branches/12/res/res_stasis.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 11 13:45:14 CDT 2014


Author: kmoore
Date: Mon Aug 11 13:45:11 2014
New Revision: 420802

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420802
Log:
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

Modified:
    branches/12/res/res_stasis.c

Modified: branches/12/res/res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_stasis.c?view=diff&rev=420802&r1=420801&r2=420802
==============================================================================
--- branches/12/res/res_stasis.c (original)
+++ branches/12/res/res_stasis.c Mon Aug 11 13:45:11 2014
@@ -1936,7 +1936,7 @@
 	}
 	ao2_unlock(unreal_pvt);
 	ao2_ref(unreal_pvt, -1);
-	return 0;
+	return res;
 }
 
 int stasis_app_channel_set_internal(struct ast_channel *chan)




More information about the svn-commits mailing list