diff options
author | doug <> | 2017-08-13 17:04:36 +0000 |
---|---|---|
committer | doug <> | 2017-08-13 17:04:36 +0000 |
commit | 8c16d5f15ed3162b6b0d316138e55627f4c0d065 (patch) | |
tree | 58020dba3858815c3918073a15807166259ae0a0 /src/lib/libcrypto/modes/ctr128.c | |
parent | 0a020be0d69dd80e383f03983ec82974ac302028 (diff) | |
download | openbsd-8c16d5f15ed3162b6b0d316138e55627f4c0d065.tar.gz openbsd-8c16d5f15ed3162b6b0d316138e55627f4c0d065.tar.bz2 openbsd-8c16d5f15ed3162b6b0d316138e55627f4c0d065.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 '')
0 files changed, 0 insertions, 0 deletions