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:
parent
460e920d8a
commit
06c6a2b4a3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user