Make CRYPTO_num_locks() return 1
authorKurt Roeckx <kurt@roeckx.be>
Wed, 29 Jun 2016 09:46:39 +0000 (11:46 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Fri, 1 Jul 2016 15:02:33 +0000 (17:02 +0200)
commit453bff226796f52694f7189c141c33a996458636
treec3805eb758fee84f6b0ac2695601646d57140ede
parent152d26461609ae36f329d6f48b2d0749e43834f3
Make CRYPTO_num_locks() return 1

malloc(0) might return NULL and code for the old callbacks might fail,
instead just say they should allocate 1 entry.

Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #1266
include/openssl/crypto.h