From 89b076c5430c4af74ef4bf4ce62ff4238d773839 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 4 Oct 2019 16:54:24 -0500 Subject: [PATCH] hx509: match docs for hx509_certs_init() --- lib/hx509/keyset.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hx509/keyset.c b/lib/hx509/keyset.c index 80b614e8a..f89dfbef3 100644 --- a/lib/hx509/keyset.c +++ b/lib/hx509/keyset.c @@ -125,6 +125,9 @@ hx509_certs_init(hx509_context context, *certs = NULL; + if (name == NULL) + name = ""; + residue = strchr(name, ':'); if (residue) { type = malloc(residue - name + 1);