From nobody Mon Mar 06 13:05:25 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 4PVf2G1kBgz3wtBQ; Mon, 6 Mar 2023 13:05:26 +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 4PVf2F2hK5z3GkL; Mon, 6 Mar 2023 13:05:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678107925; 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=iekR4m/KHAKtz2P47nPKhZtCimGEPHiqPaR9bJCkT1g=; b=cjJFU4Oo5jMo4cQd52NdrczL3WJ8UPU8N6Wh/RwOQh3kHYJAn7Dt4sa2K9gG6O1RAmtUBf 7rKBqU38WWn0W4eGBL0Ulk5ndmIVZ1ojcQMEbXGsVy561phw3G2skMEq3YxZjFInpT+GsN RMUq5Bz8D/VEA+XoY94yY7R0K//yGjn5H9Y/+qH1ALgoieE6+5KON5DKBaWQ4DPaLVpZRH cSQpYVvstgS+SFC+CMGzzf5QNOUA7Ao4Eqx0EZ6XR4QnCDeZ88wID0rznwfpjLJYe4kfUP IiNz8G1oCgFZ4pxNjJG1Ur/rfx2299xMEEyI/hAaHe2m5ZV8s9VgaaiIxWVAoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678107925; 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=iekR4m/KHAKtz2P47nPKhZtCimGEPHiqPaR9bJCkT1g=; b=miVgBqGn9UOXj2Uptmw/599BXtPxQhR5mM5shSb7PxsUFPAEk+KThYcLO8gFEjlyOLiCVm nfjwFkq2j8z6V1qGpa0s9bbjDvHzMmulDTuutGbqJBIYHzTME8v2lBFnnkXw+/OLyNVoKp Lj8Gy+Y0ckUOMGQjqv0mru4yJYaINlzpBWz0iaJvG0+msAHUP6AFkJUiIKZujtKdh00r3p nZik3O7nLz9SvDHQWrx3PN3VXUDmjo+omOhamgIZuCYof/6Tl2Wl8QzL4CWtvWaNqQ2gGK RfM0ybWFqO/Ba8sW9aCUhqce7LYqR70Nt7wp+gTz8F48OteMzZxaS3zC4EGAtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678107925; a=rsa-sha256; cv=none; b=TwCKEwdjHckUymVSdDmbZ0DdQWJpxj77uAsPcmL4dG/Vog4IJwA7wU5hminIXaU9oR43ic cMPfGe6sKcqrArTbGKs/gzmofF2dltc+irf+USUfJ+jYrjKP0o6DPmEzch9xz7CPZAZYVV bChW/t/OcX51Azj75limVNVztieRT6I9R0TKEehpQzQgHKuian3dNHHCDPBQd/wSqgJsB2 OXkngsAMNXrkVSeu19badlyxmrahhzHVLMDIFkNzLpPbi8o4kzYqL3rdnHdqHMMfrrmFrO RuOMuGPAd1fjydAEd6mfFbTW0MasQWGpCALvWNRzm6YerQsecVsL7f+TxIiuAA== 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 4PVf2F1pDXz13D1; Mon, 6 Mar 2023 13:05:25 +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 326D5Px5079365; Mon, 6 Mar 2023 13:05:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 326D5PGo079364; Mon, 6 Mar 2023 13:05:25 GMT (envelope-from git) Date: Mon, 6 Mar 2023 13:05:25 GMT Message-Id: <202303061305.326D5PGo079364@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Corvin=20K=C3=B6hne?= Subject: git: b64ba2426441 - main - bhyvectl: correct socket_fd closing in send_message 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: corvink X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b64ba2426441ed33120ef0d3057417b7c0be6972 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=b64ba2426441ed33120ef0d3057417b7c0be6972 commit b64ba2426441ed33120ef0d3057417b7c0be6972 Author: Vitaliy Gusev AuthorDate: 2023-03-06 11:30:44 +0000 Commit: Corvin Köhne CommitDate: 2023-03-06 13:03:54 +0000 bhyvectl: correct socket_fd closing in send_message Reviewed by: corvink, markj MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38889 --- 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 5efccc085119..59ecbebdfeae 100644 --- a/usr.sbin/bhyvectl/bhyvectl.c +++ b/usr.sbin/bhyvectl/bhyvectl.c @@ -1707,7 +1707,7 @@ send_message(const char *vmname, nvlist_t *nvl) nvlist_destroy(nvl); done: - if (socket_fd > 0) + if (socket_fd >= 0) close(socket_fd); return (err); }