mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Only muck with the thread structure if an idle one was found/created.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -888,8 +888,10 @@ static struct iax2_thread *find_idle_thread(void)
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user