[asterisk-commits] russell: branch 1.4 r66070 - /branches/1.4/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 24 15:07:39 MST 2007


Author: russell
Date: Thu May 24 17:07:39 2007
New Revision: 66070

URL: http://svn.digium.com/view/asterisk?view=rev&rev=66070
Log:
Check the result of ast_string_field_init() in ast_channel_alloc()

Modified:
    branches/1.4/main/channel.c

Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=66070&r1=66069&r2=66070
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Thu May 24 17:07:39 2007
@@ -742,7 +742,8 @@
 		return NULL;
 	}
 	
-	ast_string_field_init(tmp, 128);
+	if ((ast_string_field_init(tmp, 128)))
+		return NULL;
 
 	/* Don't bother initializing the last two FD here, because they
 	   will *always* be set just a few lines down (AST_TIMING_FD,



More information about the asterisk-commits mailing list