diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-21 10:08:41 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-24 12:33:39 +0100 |
commit | 7c82e339a677f8546e1456c7a8f6788598a9de43 (patch) | |
tree | 5a98fa526f110fb2455be28b8abbf2dc24930f56 /crypto/bio/bss_dgram.c | |
parent | Use OPENSSL_malloc rather than malloc/calloc (diff) | |
download | openssl-7c82e339a677f8546e1456c7a8f6788598a9de43.tar.xz openssl-7c82e339a677f8546e1456c7a8f6788598a9de43.zip |
Fix malloc define typo
Fix compilation failure when SCTP is compiled due to incorrect define.
Reported-by: Conrad Kostecki <ck+gentoobugzilla@bl4ckb0x.de>
URL: https://bugs.gentoo.org/543828
RT#3758
Signed-off-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to '')
-rw-r--r-- | crypto/bio/bss_dgram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index aef81499aa..ed275d1cb1 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -1338,7 +1338,7 @@ static int dgram_sctp_read(BIO *b, char *out, int outl) (socklen_t) (sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t)); authchunks = OPENSSL_malloc(optlen); if (!authchunks) { - BIOerr(BIO_F_DGRAM_SCTP_READ, ERR_R_MALLOC_ERROR); + BIOerr(BIO_F_DGRAM_SCTP_READ, ERR_R_MALLOC_FAILURE); return -1; } memset(authchunks, 0, optlen); @@ -1410,7 +1410,7 @@ static int dgram_sctp_write(BIO *b, const char *in, int inl) char *tmp; data->saved_message.bio = b; if(!(tmp = OPENSSL_malloc(inl))) { - BIOerr(BIO_F_DGRAM_SCTP_WRITE, ERR_R_MALLOC_ERROR); + BIOerr(BIO_F_DGRAM_SCTP_WRITE, ERR_R_MALLOC_FAILURE); return -1; } if (data->saved_message.data) |