diff options
Diffstat (limited to 'ssl/pqueue.c')
-rw-r--r-- | ssl/pqueue.c | 7 |
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; } |