diff options
author | doug <> | 2017-08-13 17:04:36 +0000 |
---|---|---|
committer | doug <> | 2017-08-13 17:04:36 +0000 |
commit | 624be46d881c4fa60639f4031ae987e42759ea90 (patch) | |
tree | 58020dba3858815c3918073a15807166259ae0a0 /src/lib/libc | |
parent | ae4d6b8586e285ed1d7d18a7a183f18f35fc8b1c (diff) | |
download | openbsd-624be46d881c4fa60639f4031ae987e42759ea90.tar.gz openbsd-624be46d881c4fa60639f4031ae987e42759ea90.tar.bz2 openbsd-624be46d881c4fa60639f4031ae987e42759ea90.zip |
Make SSL{,_CTX}_set_alpn_protos() do atomic updates and handle NULL.
Previously, the code would accept NULL and 0 length and try to
malloc/memcpy it. On OpenBSD, malloc(0) does not return NULL. It could
also fail in malloc and leave the old length.
Also, add a note that this public API has backwards semantics of what you
would expect where 0 is success and 1 is failure.
input + ok jsing@ beck@
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions