From 904bf7fe006d584f0051743e501cc54a2a897cf2 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Sat, 30 May 2020 11:03:45 -0700 Subject: [PATCH] Tiny OOM fix --- ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl.c b/ssl.c index f25dce2..f3870d5 100644 --- a/ssl.c +++ b/ssl.c @@ -215,6 +215,8 @@ redisSSLContext *redisCreateSSLContext(const char *cacert_filename, const char * const char *server_name, redisSSLContextError *error) { redisSSLContext *ctx = hi_calloc(1, sizeof(redisSSLContext)); + if (ctx == NULL) + goto error; ctx->ssl_ctx = SSL_CTX_new(SSLv23_client_method()); if (!ctx->ssl_ctx) {