From nobody Fri Mar 17 10:29:29 2023 X-Original-To: dev-commits-src-all@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 4PdL3F4HYPz3yBQn; Fri, 17 Mar 2023 10:29:29 +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 4PdL3F1wkqz3Gkr; Fri, 17 Mar 2023 10:29:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679048969; 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=SL/QB5+kOCAfJlXc/5sOAjPQdHp1faBXt65KjYZN1V4=; b=iSxDnNwRDdPqrGiI37uD1idkKfCrsvB70ZGk0ErIBvoYm4VvUspuzw93/QUq/oFgaObBr/ yZvT4l6CXm472nKth8A6RzQkcKG2bACOpjO70RqiDqbsdd2FAyQdT8WKEWRyy/5HRRu4ra VnBYqE4eIPQHOKhe5Oj9Ad/hRVTN0rvuFYsVlGjF/1lSrF/nDTmip7enSWDlbMCaMYAIWI Gk+btrX/P2/jo+kLyf3ZhjC3HJikLsx0zmXBMyWYFpYhIy8tNjtq0SJljb6n0LbZ/z5uB8 MGdPhFQmJJ5bmzXTwi4QUFGBBSMHmXPGpjjuknqIMcaE9/UdDwub55oN+XvWeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679048969; 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=SL/QB5+kOCAfJlXc/5sOAjPQdHp1faBXt65KjYZN1V4=; b=MdwmEgpPuCDZZSDLTcDxWcLHbTcJ05Xr5HvEr95Athv5gNUfTQe1zOLud0G+LjljFLgE5Q jpGfF++sTdltOjDwtfinmHUUm/nDs6H7aFCq2FkMk5/3bIWkxBWLg5VaE5E3Cv0WAqMuY6 RJz0YSZpQjN44Yc2vjk/LdGwBwMl3dnQqQLheWWHZREPTpMfZZZ2JRkAonccYwE7HNioa3 S8ZDMQ/jq9RfwQZ7VxqYtun/GzjLvEw7LaWFd3c4mp0hmEkxn/oHxexXJwzKqt9uDg8Da5 HPIi2+RGI2jG+s8gmE9J46+U8cipqV4pICfyWDY1CW+gUoftSsvCa+dnbe4hLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679048969; a=rsa-sha256; cv=none; b=ZXVS0zPQKj9NpLGCVMW1RjCAtJ18EORttikTPXs/e3KfY5XPHzoi5Ig1Hso4EjGya138mr +JAVeVRHpKgV3agmTqQ7J+sTtit9NcJbltUp0qvu1wOZzfF3x+YUMX9CRunhw1WQEXSKxC Aj299X+Y0A0fX2AERAPJIRDkHmEfxl1Vt8haJL0IwtL8RHwnmQmALkgwWrrqnsJFYFsl6I VJJ8eDXd0OPbCE4/IAkwrnZdrrBDIiNA5DUw4zoq3pk3dA1uoahQ13kHvMgAEirK2djUH8 IqFQSytQlykbzrWvG6IIUM8n6b/rOCxrsrJxWKHqRAiOVMla2lTf2rJXAYtx7g== 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 4PdL3F0y7CzMmD; Fri, 17 Mar 2023 10:29:29 +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 32HATTtS067435; Fri, 17 Mar 2023 10:29:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32HATTWV067434; Fri, 17 Mar 2023 10:29:29 GMT (envelope-from git) Date: Fri, 17 Mar 2023 10:29:29 GMT Message-Id: <202303171029.32HATTWV067434@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Corvin=20K=C3=B6hne?= Subject: git: f63fd20a9ac2 - stable/13 - bhyvectl: don't leak nvlist in send_message List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: corvink X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f63fd20a9ac2e88c1b9399b3ef8fc8edb693d192 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=f63fd20a9ac2e88c1b9399b3ef8fc8edb693d192 commit f63fd20a9ac2e88c1b9399b3ef8fc8edb693d192 Author: Vitaliy Gusev AuthorDate: 2023-03-06 11:32:17 +0000 Commit: Corvin Köhne CommitDate: 2023-03-17 10:26:34 +0000 bhyvectl: don't leak nvlist in send_message Reviewed by: corvink, markj MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38900 (cherry picked from commit 942525ab47e9cd9277ac426e082366d58d7bbe41) --- usr.sbin/bhyvectl/bhyvectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c index 59ecbebdfeae..4aa235e00489 100644 --- a/usr.sbin/bhyvectl/bhyvectl.c +++ b/usr.sbin/bhyvectl/bhyvectl.c @@ -1704,9 +1704,9 @@ send_message(const char *vmname, nvlist_t *nvl) perror("nvlist_send() failed"); err = errno; } +done: nvlist_destroy(nvl); -done: if (socket_fd >= 0) close(socket_fd); return (err);