Harmonize return values in dtls1_buffer_record
Ensure all malloc failures return -1. Reported by Adam Langley (Google). Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
@@ -231,7 +231,7 @@ dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority)
|
||||
pitem_free(item);
|
||||
|
||||
SSLerr(SSL_F_DTLS1_BUFFER_RECORD, ERR_R_INTERNAL_ERROR);
|
||||
return (0);
|
||||
return -1;
|
||||
}
|
||||
|
||||
rdata->packet = s->packet;
|
||||
|
Reference in New Issue
Block a user