From: Wouter Wijngaards Date: Thu, 3 Jan 2013 15:48:35 +0000 (+0000) Subject: fix treatment of certificates without subject. X-Git-Tag: release-1.4.20rc1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44aec50f734481f8f049c94cf6c5e1c828946c46;p=thirdparty%2Funbound.git fix treatment of certificates without subject. git-svn-id: file:///svn/unbound/trunk@2806 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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,