]> git.ipfire.org Git - thirdparty/asterisk.git/commit
PJSIP: provide valid tcp nodelay option for reuse 51/3151/2
authorScott Griepentrog <scott@griepentrog.com>
Thu, 7 Jul 2016 15:55:42 +0000 (10:55 -0500)
committerScott Griepentrog <sgriepentrog@digium.com>
Thu, 7 Jul 2016 16:28:31 +0000 (11:28 -0500)
commite26bd15e7a79d21ba0963d8ce38ec43e4550e225
treedd1debb75b47e1565d48f80cd04ce28cd8e996b5
parentac6824e4c32c49b8943fca85b318892ab4bb8df3
PJSIP: provide valid tcp nodelay option for reuse

When using TCP transport with chan_pjsip, the TCP_NODELAY
option value was allocated on the stack, then passed as a
pointer to the tcp transport configuration structure, and
later re-used on subsequently created sockets when it was
no longer valid.  This patch changes the allocation to be
a static.

ASTERISK-26180 #close
Reported by: Scott Griepentrog

Change-Id: I3251164c7f710dbdab031282f00e30a9770626a0
res/res_pjsip/config_transport.c