From 44aec50f734481f8f049c94cf6c5e1c828946c46 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 3 Jan 2013 15:48:35 +0000 Subject: [PATCH] fix treatment of certificates without subject. git-svn-id: file:///svn/unbound/trunk@2806 be551aaa-1e26-0410-a405-d3ace91eadb9 --- smallapp/unbound-anchor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index d02eb6474..88e3c015d 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -1654,10 +1654,8 @@ get_valid_signers(PKCS7* p7, char* p7signer) sk_X509_value(signers, i)); char buf[1024]; if(!nm) { - if(verb) printf("signers cert has no subject name\n"); - sk_X509_free(signers); - sk_X509_free(validsigners); - return 0; + if(verb) printf("signer %d: cert has no subject name\n", i); + continue; } if(verb) { char* nmline = X509_NAME_oneline(nm, buf, -- 2.47.3