Skip to content

Commit 7c7040d

Browse files
committed
src/internal.c: fix -Wnull-dereference in LoadCertByIssuer().
1 parent 204eb96 commit 7c7040d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/internal.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14705,7 +14705,10 @@ int LoadCertByIssuer(WOLFSSL_X509_STORE* store, X509_NAME* issuer, int type)
1470514705
if (idx >= 0) {
1470614706
WOLFSSL_MSG("find hashed CRL in list");
1470714707
ph = wolfSSL_sk_BY_DIR_HASH_value(entry->hashes, idx);
14708-
suffix = ph->last_suffix;
14708+
if (ph)
14709+
suffix = ph->last_suffix;
14710+
else
14711+
suffix = 0;
1470914712
} else {
1471014713
ph = NULL;
1471114714
suffix = 0;

0 commit comments

Comments
 (0)