diff options
author | michael-grunder <michael.grunder@gmail.com> | 2020-05-30 11:03:45 -0700 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2020-05-30 11:03:45 -0700 |
commit | 904bf7fe006d584f0051743e501cc54a2a897cf2 (patch) | |
tree | a1046b73a9f58f7e452a457243337a4e22dbf207 | |
parent | ffd6eaebd64a7c993f42181e12124e19fb914fcd (diff) |
Tiny OOM fix
-rw-r--r-- | ssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |