diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-03-18 13:30:32 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-03-20 08:55:05 -0400 |
commit | fc71c18a9b572296e171eb6b1f87aee5c2256c8c (patch) | |
tree | 8c1123cca9cfe951f7562dcd80a4b8d24e0bb9f6 /menuselect/menuselect_newt.c | |
parent | b05d2fda0c8b3473c3d6d7bd1cc0473e2728b744 (diff) |
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
Diffstat (limited to 'menuselect/menuselect_newt.c')
0 files changed, 0 insertions, 0 deletions