summaryrefslogtreecommitdiff
path: root/drivers/builtin_openssl2/ssl/d1_both.c
diff options
context:
space:
mode:
authormrezai <mhd.rezai@gmail.com>2016-05-03 23:59:14 +0430
committermrezai <mhd.rezai@gmail.com>2016-05-03 23:59:14 +0430
commitab623c923d4e2c950342aec5da371cb92b1fbbc6 (patch)
tree14edc317fa408ca610bd85e6a82468dd347865db /drivers/builtin_openssl2/ssl/d1_both.c
parente0d27c55237d4f61910b1e72b744fc043e9b6bff (diff)
Update OpenSSL to 1.0.2h
Diffstat (limited to 'drivers/builtin_openssl2/ssl/d1_both.c')
-rw-r--r--drivers/builtin_openssl2/ssl/d1_both.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/builtin_openssl2/ssl/d1_both.c b/drivers/builtin_openssl2/ssl/d1_both.c
index d1fc716d5c..5d26c94926 100644
--- a/drivers/builtin_openssl2/ssl/d1_both.c
+++ b/drivers/builtin_openssl2/ssl/d1_both.c
@@ -1459,6 +1459,8 @@ int dtls1_process_heartbeat(SSL *s)
* plus 2 bytes payload length, plus payload, plus padding
*/
buffer = OPENSSL_malloc(write_length);
+ if (buffer == NULL)
+ return -1;
bp = buffer;
/* Enter response type, length and copy payload */