projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow NULL for some _free routines.
[openssl.git]
/
crypto
/
bio
/
bss_acpt.c
diff --git
a/crypto/bio/bss_acpt.c
b/crypto/bio/bss_acpt.c
index 0171c496076e99d94bb7bb59de7cea03fcb1e6d6..64cc452891a57ff698f1ed1108d011847013f7bf 100644
(file)
--- a/
crypto/bio/bss_acpt.c
+++ b/
crypto/bio/bss_acpt.c
@@
-101,6
+101,8
@@
static BIO_ACCEPT *BIO_ACCEPT_new(void)
static void BIO_ACCEPT_free(BIO_ACCEPT *a)
{
+ if (a == NULL)
+ return;
OPENSSL_free(a->param_addr);
OPENSSL_free(a->param_serv);
BIO_ADDRINFO_free(a->addr_first);