diff options
author | Martin Baulig <martin.baulig@xamarin.com> | 2016-10-20 19:44:55 +0300 |
---|---|---|
committer | Martin Baulig <martin.baulig@xamarin.com> | 2016-10-20 19:44:55 +0300 |
commit | 9ad688f0ae679b32e9c0a9b21bb63a4488c28b6b (patch) | |
tree | e61de473117acb9e6f6c0f32c0edecf5c9a6042a | |
parent | eec2ca7e76c04ca41ef5bfc875ee3b0374cb7a94 (diff) |
Support empty hostnames in int_x509_param_set_hosts().
-rw-r--r-- | crypto/x509/x509_vpm.c | 2 |
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); |