projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix last(?) batch of malloc-NULL places
[openssl.git]
/
ssl
/
record
/
rec_layer_d1.c
diff --git
a/ssl/record/rec_layer_d1.c
b/ssl/record/rec_layer_d1.c
index 90029a25355085f4a5787db54bc767498d61da11..e3e168d9a14b5d35fba7141860c3146966304d12 100644
(file)
--- a/
ssl/record/rec_layer_d1.c
+++ b/
ssl/record/rec_layer_d1.c
@@
-20,8
+20,10
@@
int DTLS_RECORD_LAYER_new(RECORD_LAYER *rl)
{
DTLS_RECORD_LAYER *d;
- if ((d = OPENSSL_malloc(sizeof(*d))) == NULL)
+ if ((d = OPENSSL_malloc(sizeof(*d))) == NULL) {
+ SSLerr(SSL_F_DTLS_RECORD_LAYER_NEW, ERR_R_MALLOC_FAILURE);
return 0;
+ }
rl->d = d;