From b5a4ce981b4b0481cae1c1aabdb59e6735959b3b Mon Sep 17 00:00:00 2001 From: weolar <405360001@qq.com> Date: Fri, 22 Nov 2019 10:02:36 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node/openssl/openssl/crypto/lhash/lhash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/openssl/openssl/crypto/lhash/lhash.c b/node/openssl/openssl/crypto/lhash/lhash.c index 53c5c138bb..01a2eb46cb 100644 --- a/node/openssl/openssl/crypto/lhash/lhash.c +++ b/node/openssl/openssl/crypto/lhash/lhash.c @@ -404,6 +404,8 @@ static LHASH_NODE **getrn(_LHASH *lh, const void *data, unsigned long *rhash) cf = lh->comp; ret = &(lh->b[(int)nn]); for (n1 = *ret; n1 != NULL; n1 = n1->next) { + if (!n1) + continue; #ifndef OPENSSL_NO_HASH_COMP lh->num_hash_comps++; if (n1->hash != hash) {