diff options
-rw-r--r-- | lib/libssl/src/crypto/bio/bss_dgram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c index 72cb19d135f..a3b5bb65746 100644 --- a/lib/libssl/src/crypto/bio/bss_dgram.c +++ b/lib/libssl/src/crypto/bio/bss_dgram.c @@ -1118,7 +1118,8 @@ dgram_sctp_write(BIO *b, const char *in, int inl) if (data->save_shutdown && !BIO_dgram_sctp_wait_for_dry(b)) { data->saved_message.bio = b; data->saved_message.length = inl; - data->saved_message.data = calloc(1, inl); + data->saved_message.data = malloc(inl); + memcpy(data->saved_message.data, in, inl); return inl; } |