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_conn.c
diff --git
a/crypto/bio/bss_conn.c
b/crypto/bio/bss_conn.c
index 0fad02fdd5987cf388f33a6ade68e07b4e585a34..cc245ab07c50675fde358226d91f0ad3d48c2226 100644
(file)
--- a/
crypto/bio/bss_conn.c
+++ b/
crypto/bio/bss_conn.c
@@
-232,6
+232,8
@@
BIO_CONNECT *BIO_CONNECT_new(void)
void BIO_CONNECT_free(BIO_CONNECT *a)
{
+ if (a == NULL)
+ return;
OPENSSL_free(a->param_hostname);
OPENSSL_free(a->param_service);
BIO_ADDRINFO_free(a->addr_first);