summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_dgram.c
diff options
context:
space:
mode:
authorderaadt <>2014-04-21 13:13:43 +0000
committerderaadt <>2014-04-21 13:13:43 +0000
commit428f18a9e4826dc341f44f5794e6ee923c47beea (patch)
tree35e3a2444e0a47c8d9ad55e06fb7190282d5b996 /src/lib/libcrypto/bio/bss_dgram.c
parent4a03cd4fbfa8576f75ca61996df022931f06a730 (diff)
downloadopenbsd-428f18a9e4826dc341f44f5794e6ee923c47beea.tar.gz
openbsd-428f18a9e4826dc341f44f5794e6ee923c47beea.tar.bz2
openbsd-428f18a9e4826dc341f44f5794e6ee923c47beea.zip
wrong calloc, see people do care
Diffstat (limited to 'src/lib/libcrypto/bio/bss_dgram.c')
-rw-r--r--src/lib/libcrypto/bio/bss_dgram.c3
1 files changed, 2 insertions, 1 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