projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further OS-X deprecated warnings tweak
[oweals/openssl.git]
/
crypto
/
bio
/
bss_dgram.c
diff --git
a/crypto/bio/bss_dgram.c
b/crypto/bio/bss_dgram.c
index 9c6af4bc9d71eda921ccda8e9fdb01cedb0b5b23..0975856d59aa40bb0fc3e1e4744092f4be324828 100644
(file)
--- a/
crypto/bio/bss_dgram.c
+++ b/
crypto/bio/bss_dgram.c
@@
-997,7
+997,7
@@
BIO *BIO_new_dgram_sctp(int fd, int close_flag)
*/
sockopt_len = (socklen_t) (sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t));
authchunks = OPENSSL_zalloc(sockopt_len);
*/
sockopt_len = (socklen_t) (sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t));
authchunks = OPENSSL_zalloc(sockopt_len);
- if (
!authchunks
) {
+ if (
authchunks == NULL
) {
BIO_vfree(bio);
return (NULL);
}
BIO_vfree(bio);
return (NULL);
}
@@
-1334,7
+1334,7
@@
static int dgram_sctp_read(BIO *b, char *out, int outl)
optlen =
(socklen_t) (sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t));
authchunks = OPENSSL_malloc(optlen);
optlen =
(socklen_t) (sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t));
authchunks = OPENSSL_malloc(optlen);
- if (
!authchunks
) {
+ if (
authchunks == NULL
) {
BIOerr(BIO_F_DGRAM_SCTP_READ, ERR_R_MALLOC_FAILURE);
return -1;
}
BIOerr(BIO_F_DGRAM_SCTP_READ, ERR_R_MALLOC_FAILURE);
return -1;
}