]> git.ipfire.org Git - thirdparty/asterisk.git/commit
thread safety: Don't use getprotobyname()
authorSean Bright <sean.bright@gmail.com>
Sat, 18 Mar 2017 17:30:32 +0000 (13:30 -0400)
committerSean Bright <sean.bright@gmail.com>
Mon, 20 Mar 2017 12:51:47 +0000 (08:51 -0400)
commit38cebc73a33195fa14d6fa417284c59efe6111ee
tree187ba2eac60466d82253c8753a4ffc144b14809a
parentbaeabb82eaa92a9d493ae92b77ece72faf37d619
thread safety: Don't use getprotobyname()

POSIX does not require getprotobyname() to be thread safe and some
implementations use static memory which causes issues when multiple
threads are used.

Further, our usage of it today is just to ultimately get IPPROTO_TCP
for calls to setsockopt(). So instead we just use IPPROTO_TCP directly.

Change-Id: I2e14e58674808f7ce99b2f5e900d0f90d0d8da48
channels/chan_skinny.c
include/asterisk/network.h
main/http.c
main/manager.c