[asterisk-commits] mmichelson: branch group/CCSS r217152 -	/team/group/CCSS/main/channel.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Tue Sep  8 14:30:45 CDT 2009
    
    
  
Author: mmichelson
Date: Tue Sep  8 14:30:43 2009
New Revision: 217152
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217152
Log:
Set the frame's datalen so that it can be properly copied
during duplication. This was leading to some obscure crashes.
Modified:
    team/group/CCSS/main/channel.c
Modified: team/group/CCSS/main/channel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/channel.c?view=diff&rev=217152&r1=217151&r2=217152
==============================================================================
--- team/group/CCSS/main/channel.c (original)
+++ team/group/CCSS/main/channel.c Tue Sep  8 14:30:43 2009
@@ -7159,6 +7159,7 @@
 	ast_log(LOG_NOTICE, "Going to queue a frame with payload %s, %d\n", payload->monitor_type, payload->service);
 	frame.mallocd = AST_MALLOCD_DATA;
 	frame.data.ptr = payload;
+	frame.datalen = sizeof(*payload);
 	return ast_queue_frame(chan, &frame);
 }
 /* DO NOT PUT ADDITIONAL FUNCTIONS BELOW THIS BOUNDARY
    
    
More information about the asterisk-commits
mailing list