]> git.ipfire.org Git - thirdparty/asterisk.git/commit
PJSIP: provide valid tcp nodelay option for reuse 50/3150/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:32:58 +0000 (11:32 -0500)
commitfb96492ec49b75eb8b6d60e1ce5b68cd8b57c1df
tree7e3470a608bb4996a4dc052e920f5a9bb533d527
parent9e10aa84969b3b6e57dde5a637c47f17f1fd4ef7
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