From nobody Tue Aug 20 14:04:16 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WpB690LHhz5TBMM; Tue, 20 Aug 2024 14:04:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WpB686yyHz4fhf; Tue, 20 Aug 2024 14:04:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724162657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V0AneJlUMrHRZhtCpD9bAbWE69R+SrmSVn76Ib7E0rQ=; b=TivDBRC0p16fL5IMp9AxTqkcuUbl3Pc5ZkHOTvAXjP60mrek/eAZtZoY/dIr1LkzFdzV03 aFR/GL+t0+R8TIZT4pgbd54OA7T/oqwjYeGhHaG7/MZbn/7Kc7F90sV0YN4+6q+sMsZW3W CZyf4yraoTK5yVN2JCsYClV1pp5fvQ3xBIzwpvKzvi6YSqBpagYq/pW8YHG5PnFjJ+nnZr eEiEjBKJ//EG0d9jH5djrg+lmWCDiKmn/wwzNBKNfZtx7K8c3Wtk7eTyAaeTKUehLkIjBj ShOCzwCMjn4Jxy8DNBPc69ArX+qQg0iFmVSLP8sKdKPPyzevx/H63rbNTrEVgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724162657; a=rsa-sha256; cv=none; b=aqUG556gkk50KSbx6w2rpkkXPfKbwn/BtlFie8wpcbNX8thF/0AEehMgq66QuRQC1iWTPk XxIicWEfi6VMFVeyY6psoqZGUrl91oiNcDhpEdZKjULfvOeGYpgbRKO5vhfk9CO6fH7X8k HrtKMxgzDGp+hATci9HstlsxyCukl2J/DhPSu3Oux8ijN8lh144ZYAj8fBhVp8OIm/lgjI RitgM4Y3FTMKtzowVwSITYeUV6rGQnKSah9ZdVebZ85y3oppAyswKYznO9r3+SjAfh3cjm JAkTvVPlc1uRkAE+P7Mdt2iQDRikbpWw/psJLP0TaAD7+Eix0CD941KwsLVGdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724162657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V0AneJlUMrHRZhtCpD9bAbWE69R+SrmSVn76Ib7E0rQ=; b=cEFXsqbJcwEW8T6m/66AHCJ+GlFbOK3ZCdQy+ZvHo8Dyp5GDnImMFid1mNEhcXlmQjMyEJ XAqhqWitTLF6uK4Su9cb30EW1Ggj485aEga6F9K4q+QGs4v3hwCp4+AVCVVgfNK6aCo46C 9wDhKQIUXE++lxPmOg6JL1w7+4wevR2m0cs0sgsUEUubgZ3WpIT2YWPKMjlHjmFvUYIv7M 5mowecFXHnDMjtxJzxiu4cHzbbaY2wW+/zccDF6wwcMH0yyoxCLrFje9VI9xRMUz4mvLBT 4JdUtZnyrHsMlwfKD5ok2+9fdN+k72U+jKGmWqqfY05FV8nwVN9guE8zcYHy/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WpB686ZYyz132q; Tue, 20 Aug 2024 14:04:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47KE4GkN090770; Tue, 20 Aug 2024 14:04:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47KE4GHk090767; Tue, 20 Aug 2024 14:04:16 GMT (envelope-from git) Date: Tue, 20 Aug 2024 14:04:16 GMT Message-Id: <202408201404.47KE4GHk090767@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eugene Grosbein Subject: git: e5b853808363 - main - libalias: add another check to previous change List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e5b85380836378c9e321a4e6d300591e6faf622a Auto-Submitted: auto-generated The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=e5b85380836378c9e321a4e6d300591e6faf622a commit e5b85380836378c9e321a4e6d300591e6faf622a Author: Eugene Grosbein AuthorDate: 2024-08-20 14:00:35 +0000 Commit: Eugene Grosbein CommitDate: 2024-08-20 14:04:13 +0000 libalias: add another check to previous change If UseLink() returns NULL, it is possible that Deletelink() has already freed "grp", so check it out carefully. PR: 269770 Reported by: Peter Much X-MFC-With: 8132e959099f0c533f698d8fbc17386f9144432f --- sys/netinet/libalias/alias_db.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c index d516b6cda96c..4bb95549aaaf 100644 --- a/sys/netinet/libalias/alias_db.c +++ b/sys/netinet/libalias/alias_db.c @@ -875,6 +875,9 @@ _FindLinkIn(struct libalias *la, struct in_addr dst_addr, if (found != NULL) return (found); /* link expired */ + grp = StartPointIn(la, alias_addr, alias_port, link_type, 0); + if (grp == NULL) + return (NULL); break; } }