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:32 +0000 (13:52 -0700)
commit0c14565c5b7683e4bd47cf299b2f6d4bc26d61aa
treef838a55bbc40894e56362531fa462653d8b5e573
parent5a9e9669d8073ddc5efeea08f3daee42509b2aa7
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