diff options
| author | Xin LI <delphij@FreeBSD.org> | 2018-02-28 06:23:12 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2018-02-28 06:23:12 +0000 |
| commit | d14ac12f8738acac881f20b4d6244cfc22c68ead (patch) | |
| tree | 8888cc3c4a7235bf8abd28681330d20442bc3705 /libntp/libssl_compat.c | |
| parent | 07ac48c3644021279e113d530764a231e27490a7 (diff) | |
Notes
Diffstat (limited to 'libntp/libssl_compat.c')
| -rw-r--r-- | libntp/libssl_compat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libntp/libssl_compat.c b/libntp/libssl_compat.c index afe4d07a4b0a1..5527682b34f9e 100644 --- a/libntp/libssl_compat.c +++ b/libntp/libssl_compat.c @@ -74,7 +74,10 @@ sslshimBN_GENCB_free( EVP_MD_CTX* sslshim_EVP_MD_CTX_new(void) { - return calloc(1, sizeof(EVP_MD_CTX)); + EVP_MD_CTX * ctx; + if (NULL != (ctx = calloc(1, sizeof(EVP_MD_CTX)))) + EVP_MD_CTX_init(ctx); + return ctx; } void |
