aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/async_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/async/async_wait.c')
-rw-r--r--crypto/async/async_wait.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/async/async_wait.c b/crypto/async/async_wait.c
index df7d29302182..cf4db49dae39 100644
--- a/crypto/async/async_wait.c
+++ b/crypto/async/async_wait.c
@@ -40,6 +40,7 @@ void ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx)
OPENSSL_free(ctx);
}
+
int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,
OSSL_ASYNC_FD fd, void *custom_data,
void (*cleanup)(ASYNC_WAIT_CTX *, const void *,
@@ -47,10 +48,8 @@ int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,
{
struct fd_lookup_st *fdlookup;
- if ((fdlookup = OPENSSL_zalloc(sizeof(*fdlookup))) == NULL) {
- ERR_raise(ERR_LIB_ASYNC, ERR_R_MALLOC_FAILURE);
+ if ((fdlookup = OPENSSL_zalloc(sizeof(*fdlookup))) == NULL)
return 0;
- }
fdlookup->key = key;
fdlookup->fd = fd;