Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin.baulig@xamarin.com>2016-10-20 19:44:55 +0300
committerMartin Baulig <martin.baulig@xamarin.com>2016-10-20 19:44:55 +0300
commit9ad688f0ae679b32e9c0a9b21bb63a4488c28b6b (patch)
treee61de473117acb9e6f6c0f32c0edecf5c9a6042a
parenteec2ca7e76c04ca41ef5bfc875ee3b0374cb7a94 (diff)
Support empty hostnames in int_x509_param_set_hosts().
-rw-r--r--crypto/x509/x509_vpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c
index b51bc176..02a58988 100644
--- a/crypto/x509/x509_vpm.c
+++ b/crypto/x509/x509_vpm.c
@@ -99,7 +99,7 @@ static int int_x509_param_set_hosts(X509_VERIFY_PARAM_ID *id, int mode,
string_stack_free(id->hosts);
id->hosts = NULL;
}
- if (name == NULL || namelen == 0)
+ if (name == NULL)
return 1;
copy = BUF_strndup(name, namelen);