(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:
Love Hörnquist Åstrand
2007-01-14 22:17:42 +00:00
parent 1e0cd6e775
commit ba9774453c

View File

@@ -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;