summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2014-04-21 13:13:43 +0000
committerderaadt <>2014-04-21 13:13:43 +0000
commitc7cbcf9bb8536d33ffb30f6eb6a5f8a4776ede31 (patch)
tree35e3a2444e0a47c8d9ad55e06fb7190282d5b996 /src
parent3a880eb2ba098077540eaaad8bae436dc2f546bb (diff)
downloadopenbsd-c7cbcf9bb8536d33ffb30f6eb6a5f8a4776ede31.tar.gz
openbsd-c7cbcf9bb8536d33ffb30f6eb6a5f8a4776ede31.tar.bz2
openbsd-c7cbcf9bb8536d33ffb30f6eb6a5f8a4776ede31.zip
wrong calloc, see people do care
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bio/bss_dgram.c3
-rw-r--r--src/lib/libssl/src/crypto/bio/bss_dgram.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_dgram.c b/src/lib/libcrypto/bio/bss_dgram.c
index 72cb19d135..a3b5bb6574 100644
--- a/src/lib/libcrypto/bio/bss_dgram.c
+++ b/src/lib/libcrypto/bio/bss_dgram.c
@@ -1118,7 +1118,8 @@ dgram_sctp_write(BIO *b, const char *in, int inl)
1118 if (data->save_shutdown && !BIO_dgram_sctp_wait_for_dry(b)) { 1118 if (data->save_shutdown && !BIO_dgram_sctp_wait_for_dry(b)) {
1119 data->saved_message.bio = b; 1119 data->saved_message.bio = b;
1120 data->saved_message.length = inl; 1120 data->saved_message.length = inl;
1121 data->saved_message.data = calloc(1, inl); 1121 data->saved_message.data = malloc(inl);
1122 memcpy(data->saved_message.data, in, inl);
1122 return inl; 1123 return inl;
1123 } 1124 }
1124 1125
diff --git a/src/lib/libssl/src/crypto/bio/bss_dgram.c b/src/lib/libssl/src/crypto/bio/bss_dgram.c
index 72cb19d135..a3b5bb6574 100644
--- a/src/lib/libssl/src/crypto/bio/bss_dgram.c
+++ b/src/lib/libssl/src/crypto/bio/bss_dgram.c
@@ -1118,7 +1118,8 @@ dgram_sctp_write(BIO *b, const char *in, int inl)
1118 if (data->save_shutdown && !BIO_dgram_sctp_wait_for_dry(b)) { 1118 if (data->save_shutdown && !BIO_dgram_sctp_wait_for_dry(b)) {
1119 data->saved_message.bio = b; 1119 data->saved_message.bio = b;
1120 data->saved_message.length = inl; 1120 data->saved_message.length = inl;
1121 data->saved_message.data = calloc(1, inl); 1121 data->saved_message.data = malloc(inl);
1122 memcpy(data->saved_message.data, in, inl);
1122 return inl; 1123 return inl;
1123 } 1124 }
1124 1125