diff options
author | Emilia Kasper <emilia@openssl.org> | 2015-03-04 13:05:53 -0800 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2015-03-10 13:52:37 -0700 |
commit | 8b7e469d06d7c487342eef1dcca3dc02fe7cd267 (patch) | |
tree | 43d56fb4e6a7da7141220f1c7b8d4d255a7da79b | |
parent | 93cb447df263a0ba91c09be679eef6b1523df4f4 (diff) | |
download | openssl-new-8b7e469d06d7c487342eef1dcca3dc02fe7cd267.tar.gz |
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>
(cherry picked from commit 06c6a2b4a3a6e64303caa256398dd2dc16f9c35a)
-rw-r--r-- | ssl/d1_pkt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 0985bb0abc..7b49a7dd7a 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -236,7 +236,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; |