[asterisk-commits] rmudgett: branch 10 r331420 - /branches/10/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 10 14:07:56 CDT 2011


Author: rmudgett
Date: Wed Aug 10 14:07:53 2011
New Revision: 331420

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=331420
Log:
Make sure feature_request_and_dial() initializes outstate if passed in.

Modified:
    branches/10/main/features.c

Modified: branches/10/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/features.c?view=diff&rev=331420&r1=331419&r2=331420
==============================================================================
--- branches/10/main/features.c (original)
+++ branches/10/main/features.c Wed Aug 10 14:07:53 2011
@@ -3012,6 +3012,9 @@
 
 	tmp_cap = ast_format_cap_alloc_nolock();
 	if (!tmp_cap) {
+		if (outstate) {
+			*outstate = 0;
+		}
 		return NULL;
 	}
 	ast_best_codec(cap, &best_audio_fmt);




More information about the asterisk-commits mailing list