aboutsummaryrefslogtreecommitdiff
path: root/ssl/pqueue.c
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2025-05-07 21:18:24 +0000
committerEnji Cooper <ngie@FreeBSD.org>2025-05-07 22:37:22 +0000
commit29536654cc41bf41b92dc836c47496dc6fe0b00c (patch)
tree368a3c5b14e610bb5f6b71657f61a41e373eaf97 /ssl/pqueue.c
parent1c34280346af8284acdc0eae39496811d37df25d (diff)
Diffstat (limited to 'ssl/pqueue.c')
-rw-r--r--ssl/pqueue.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ssl/pqueue.c b/ssl/pqueue.c
index 0852aceacff7..db161e25da1f 100644
--- a/ssl/pqueue.c
+++ b/ssl/pqueue.c
@@ -19,10 +19,8 @@ pitem *pitem_new(unsigned char *prio64be, void *data)
{
pitem *item = OPENSSL_malloc(sizeof(*item));
- if (item == NULL) {
- ERR_raise(ERR_LIB_SSL, ERR_R_MALLOC_FAILURE);
+ if (item == NULL)
return NULL;
- }
memcpy(item->priority, prio64be, sizeof(item->priority));
item->data = data;
@@ -39,9 +37,6 @@ pqueue *pqueue_new(void)
{
pqueue *pq = OPENSSL_zalloc(sizeof(*pq));
- if (pq == NULL)
- ERR_raise(ERR_LIB_SSL, ERR_R_MALLOC_FAILURE);
-
return pq;
}