diff options
author | miod <> | 2015-02-11 06:40:04 +0000 |
---|---|---|
committer | miod <> | 2015-02-11 06:40:04 +0000 |
commit | a958e8104030c4eac21e785de5482ac58facc7c8 (patch) | |
tree | 470f3b7cf86d73904926240149bf79bf91d98e75 /src/lib/libtls/tls_client.c | |
parent | 3fb89787679dd239a55ca0a4e366ad4e2051fe84 (diff) | |
download | openbsd-a958e8104030c4eac21e785de5482ac58facc7c8.tar.gz openbsd-a958e8104030c4eac21e785de5482ac58facc7c8.tar.bz2 openbsd-a958e8104030c4eac21e785de5482ac58facc7c8.zip |
Do not rely upon malloc(0) not returning NULL. Not all malloc implementations
have this property.
Instead, skip the malloc and memcmp if their size is zero.
Per bcook@ request in order to run on AIX
Diffstat (limited to 'src/lib/libtls/tls_client.c')
0 files changed, 0 insertions, 0 deletions