diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/d1_lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c index 4ee3e36168..c417c295df 100644 --- a/src/lib/libssl/d1_lib.c +++ b/src/lib/libssl/d1_lib.c | |||
| @@ -104,8 +104,10 @@ dtls1_new(SSL *s) | |||
| 104 | 104 | ||
| 105 | if (!ssl3_new(s)) | 105 | if (!ssl3_new(s)) |
| 106 | return (0); | 106 | return (0); |
| 107 | if ((d1 = calloc(1, sizeof *d1)) == NULL) | 107 | if ((d1 = calloc(1, sizeof *d1)) == NULL) { |
| 108 | ssl3_free(s); | ||
| 108 | return (0); | 109 | return (0); |
| 110 | } | ||
| 109 | 111 | ||
| 110 | /* d1->handshake_epoch=0; */ | 112 | /* d1->handshake_epoch=0; */ |
| 111 | 113 | ||
