mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
linux... how did that not crash every time
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12856 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -3319,8 +3319,10 @@ msg_t *nta_msg_create_for_transport(nta_agent_t *agent, int flags,
|
||||
|
||||
msg_maxsize(msg, agent->sa_maxsize);
|
||||
|
||||
if (agent->sa_preload)
|
||||
su_home_preload(msg_home(msg), 1, dlen + agent->sa_preload);
|
||||
if (1 || agent->sa_preload) {
|
||||
isize_t preload = (dlen + agent->sa_preload + 1023) & ~1023;
|
||||
su_home_preload(msg_home(msg), 1, preload);
|
||||
}
|
||||
|
||||
return msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user