hx509: match docs for hx509_certs_init()
authorNicolas Williams <nico@twosigma.com>
Fri, 4 Oct 2019 21:54:24 +0000 (16:54 -0500)
committerNicolas Williams <nico@twosigma.com>
Tue, 8 Oct 2019 02:32:00 +0000 (21:32 -0500)
lib/hx509/keyset.c

index 80b614e8adfea49f4cb5e106880f53b4b2dc65d9..f89dfbef3ab3a1198486a89244f033db4f10b4f6 100644 (file)
@@ -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);