forked from wolfSSL/wolfssl
Fix for no certificates and calling DoVerifyCallback.
This commit is contained in:
@@ -8539,7 +8539,7 @@ static int DoVerifyCallback(WOLFSSL* ssl, int ret, ProcPeerCertArgs* args)
|
||||
domain[0] = '\0';
|
||||
|
||||
/* build subject CN as string to return in store */
|
||||
if (args->dCert && args->dCert->subjectCN) {
|
||||
if (args->dCertInit && args->dCert && args->dCert->subjectCN) {
|
||||
int subjectCNLen = args->dCert->subjectCNLen;
|
||||
if (subjectCNLen > ASN_NAME_MAX-1)
|
||||
subjectCNLen = ASN_NAME_MAX-1;
|
||||
|
Reference in New Issue
Block a user