summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_client.c
diff options
context:
space:
mode:
authormiod <>2015-02-11 06:40:04 +0000
committermiod <>2015-02-11 06:40:04 +0000
commita958e8104030c4eac21e785de5482ac58facc7c8 (patch)
tree470f3b7cf86d73904926240149bf79bf91d98e75 /src/lib/libtls/tls_client.c
parent3fb89787679dd239a55ca0a4e366ad4e2051fe84 (diff)
downloadopenbsd-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