diff options
Diffstat (limited to 'crypto/async/async_wait.c')
-rw-r--r-- | crypto/async/async_wait.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/async/async_wait.c b/crypto/async/async_wait.c index d6d469527a..788c7cdd8c 100644 --- a/crypto/async/async_wait.c +++ b/crypto/async/async_wait.c @@ -47,9 +47,10 @@ int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key, { struct fd_lookup_st *fdlookup; - fdlookup = OPENSSL_zalloc(sizeof(*fdlookup)); - if (fdlookup == NULL) + if ((fdlookup = OPENSSL_zalloc(sizeof(*fdlookup))) == NULL) { + ASYNCerr(ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD, ERR_R_MALLOC_FAILURE); return 0; + } fdlookup->key = key; fdlookup->fd = fd; |