summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authordoug <>2017-08-13 17:04:36 +0000
committerdoug <>2017-08-13 17:04:36 +0000
commit624be46d881c4fa60639f4031ae987e42759ea90 (patch)
tree58020dba3858815c3918073a15807166259ae0a0 /src/lib/libc
parentae4d6b8586e285ed1d7d18a7a183f18f35fc8b1c (diff)
downloadopenbsd-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