(hx509_name_expand): if env is NULL, return directly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19904 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -527,6 +527,9 @@ hx509_name_expand(hx509_context context,
|
||||
Name *n = &name->der_name;
|
||||
int i, j;
|
||||
|
||||
if (env == NULL)
|
||||
return 0;
|
||||
|
||||
if (n->element != choice_Name_rdnSequence) {
|
||||
hx509_set_error_string(context, 0, EINVAL, "RDN not of supported type");
|
||||
return EINVAL;
|
||||
|
Reference in New Issue
Block a user