Harmonize return values in dtls1_buffer_record
authorEmilia Kasper <emilia@openssl.org>
Wed, 4 Mar 2015 21:05:53 +0000 (13:05 -0800)
committerEmilia Kasper <emilia@openssl.org>
Tue, 10 Mar 2015 20:52:37 +0000 (13:52 -0700)
commit8b7e469d06d7c487342eef1dcca3dc02fe7cd267
tree43d56fb4e6a7da7141220f1c7b8d4d255a7da79b
parent93cb447df263a0ba91c09be679eef6b1523df4f4
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)
ssl/d1_pkt.c