From nobody Wed Jun 14 10:40:06 2023 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 4Qh24Q6Sncz4dl3l; Wed, 14 Jun 2023 10:40:06 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qh24Q5dD8z4Jq9; Wed, 14 Jun 2023 10:40:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686739206; 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=+z8svhkEeZG3NQAZP8zy964iLcWV1qjMtyi39S+Qezs=; b=JcfGdvpKD67OtLlmtFMluYOUb0LpBiRwBHOlLXItbtLFVaZ8EXDtgM+50cNyCAhIwpK5V4 54EvCFVkyTPPSrsgFxeme1Zbv8J+mV75hoyNszlio9lUG6M7yyKpCuh1KkpojxGnNX4Xvg r1xR7obIg4MJ1dZQkzYXCjETmcbQoOC89l1rdDD8uCEDn75V8MNzBjw3DPSXlw5l87OlQN Act6W2Bp4I+mO0WOgJGPDLR4AqLR/RRqM/Md81s1rivrYm4O5N0tlN+3QlaXCf+yt1+y7A 0gGCeW4eVRf+xoRgKiujunBwqUtuLZJHOGx/N7GCOoVJ6Pw0sox4oJ6KbnYKbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686739206; 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=+z8svhkEeZG3NQAZP8zy964iLcWV1qjMtyi39S+Qezs=; b=rm2b7LpNlQ5fVFm+BN6DTPyoMKTCA9vd50dvgUfj7xr7q5J53O/XTOIzXoeDRnPdC2F84R Dmn0w3ofK4Hxmyv0rFJHjKy91rBjE1h9s4SWFUJ8OafVZAd+QOM76am4IYJeZWfPX76Wwq KWLzj4Do7ntr24SvYXrqO7ayQ1gKNYl4JQ2uQcrxZtc/O8k9wRxiVtXzT1sEUeRH4i1neE ZFtBjm+V4eqKUyz05+2BMSDklT/wyiPVCrlYh7+Io8u5slTB5Py+knMiZUqzpNjxshHrQn G3qIGbiMW1L+8C2TzdSVmwW8+NmV+5CxzIqi1GcZ+lMFqZTGB6JtKMWTB7CaSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686739206; a=rsa-sha256; cv=none; b=fSi7a3bn811z6FQnsIE/FCwNs9gkqgI/4tDSM6PpJ1Acgn2BpMggXu0zVe6xEOHzRafcQW 6hFP520z+TLzuvXsh1Pq0fBNBwzHlzwjXFZwzsH8NsSBrjF3Z/v8hfAzbqz6q2KtE/Tdto LdBIeDDqKVo79bvcT2ynJM873WXVKchLmrTLGHI2irT8kJALCv7TkVENUPPFEnjrupP7oh 2KayaqEhfRWHGnHU7zVU3YT/7yGa8enbYHShL6eI9VHXrp4Ym/mxgDbQ7lUZJOznmklAKD YlpjF2gJH/WTW52NHjJjVE+myJUucgeL8scpSyqeO+oOIO/l0/TOvk9kwF+R5g== 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 4Qh24Q4Zl4z10tk; Wed, 14 Jun 2023 10:40:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35EAe6Bg021823; Wed, 14 Jun 2023 10:40:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35EAe6rs021820; Wed, 14 Jun 2023 10:40:06 GMT (envelope-from git) Date: Wed, 14 Jun 2023 10:40:06 GMT Message-Id: <202306141040.35EAe6rs021820@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 52ff8883185a - main - ifconfig: fix ifconfig crash when compiled w/WITHOUT_NETLINK. 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 52ff8883185ad6ffa21fd0d01db1426e5c13af83 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=52ff8883185ad6ffa21fd0d01db1426e5c13af83 commit 52ff8883185ad6ffa21fd0d01db1426e5c13af83 Author: Alexander V. Chernikov AuthorDate: 2023-06-14 10:37:07 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-06-14 10:37:07 +0000 ifconfig: fix ifconfig crash when compiled w/WITHOUT_NETLINK. Properly update the recently-introduced `ctx->ifname` when iterating over interfaces. Reported by: Gary Jennejohn MFC after: 2 weeks --- sbin/ifconfig/ifconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index d30d3e1909ae..6a80ad5763b2 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -822,6 +822,7 @@ list_interfaces_ioctl(if_ctx *ctx) continue; if (!group_member(ifa->ifa_name, args->matchgroup, args->nogroup)) continue; + ctx->ifname = cp; /* * Are we just listing the interfaces? */