[asterisk-commits] file: branch 1.4 r67304 -
/branches/1.4/channels/chan_iax2.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jun 5 08:22:31 MST 2007
Author: file
Date: Tue Jun 5 10:22:30 2007
New Revision: 67304
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67304
Log:
Only muck with the thread structure if an idle one was found/created.
Modified:
branches/1.4/channels/chan_iax2.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=67304&r1=67303&r2=67304
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Tue Jun 5 10:22:30 2007
@@ -888,8 +888,10 @@
/* this thread is not processing a full frame (since it is idle),
so ensure that the field for the full frame call number is empty */
- thread->ffcallno = 0;
- memset(&thread->ffsin, 0, sizeof(thread->ffsin));
+ if (thread) {
+ thread->ffcallno = 0;
+ memset(&thread->ffsin, 0, sizeof(thread->ffsin));
+ }
return thread;
}
More information about the asterisk-commits
mailing list