From ba9774453c50a119e9744cd52dbc8729af06be64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 14 Jan 2007 22:17:42 +0000 Subject: [PATCH] (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 --- lib/hx509/name.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hx509/name.c b/lib/hx509/name.c index a5877dfc7..e77a8f3da 100644 --- a/lib/hx509/name.c +++ b/lib/hx509/name.c @@ -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;