From nobody Fri Mar 17 10:29:27 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 4PdL3D1nLMz3yBTj; Fri, 17 Mar 2023 10:29:28 +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 4PdL3D0xVsz3Gh8; Fri, 17 Mar 2023 10:29:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679048968; 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=CThum5FnHPXwPhEoOonLFE89n6PdYyr5/rsZIIUqOtc=; b=oTcpGUjGYmExgI0WRQyWl12gthT/ObdtIjqRpbgjjdL5todIebB9oRBS2SNHvcRZ0Z6tuK 8Sv2Sf86DqDJ/RX16dxX4qCsZuAgYPWxoOmAe8aa9NS4vpuZY2frm4UebtNxIDNcCkYBjg CD1zIfK956HT2P+YCubRefHV7qTtNL5Fa/nxHrf4eX9VzqWLVnzGrnzPSWaVVVDIU1SDOH YeB1TA+TtG+/fauHY/D5UO1/QvDcALy7Bvui+KajwUmGvo1E6hesSCU2Usq/uzYAY8RfoP HHxP06XjYsvuevMRNXi6TyFsRYe5dGnQwZp6SF94NmeE0Oi6Z8JhkSpPuTkJrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679048968; 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=CThum5FnHPXwPhEoOonLFE89n6PdYyr5/rsZIIUqOtc=; b=ioppY/R0UbjqLtl1ACZhhGUWD3tExNzTzLphw/0PLvnQJ4LByYDyz1PPBo8wwjMiri7HLI +41FGuVSXzNbhD/lNMWP6ItmgpP59lUCtB6+FnnZim9nf+F2Rfe407TpfEiRvNEBDe6okK N+iYAGRDo1m8ZK3EOFXJOIiKsutsPd60hFJxcg627JEDBjshJfjmPutvMAsYxbpuLG8QpE BPNadyuYBeBta35NTxL5IBN+MqYIzZ5GrBwJmUlvlk6o7pUdugKJM5WChz6vDSy06DdsXZ Wu4KpuXLKYgjobOXRjnDxtb6kSp/IAGMRHzAFW80hCILWuBZNX9B27KwULqZMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679048968; a=rsa-sha256; cv=none; b=Wo7PhxZT9kr/wIAOi6LhqKa4dSj73iX6ycWIbqoNda62B4wUJWoLoRCiLELff4ZvlxXS1X 9FXJR51MtgqVKd/yWw3XjamkNMYADo6I/e8vKfnouM7JrOBQ4Xat1eaO9nVl8Asj1iMQCo Yq965ZiKZTDz1SBtn/nkQqLMPKkRkKFex46vhMnxde/Ly9NTKm2bvcAYWEVNpQfwTp/1QR WXi9leKrGIYt7+fgWuqr+x77ONdHsJLkHg+8JUv4mB0BeWNrd0nPdSvl/9sOVby31WcytU +K0EQmfwhC4mGlBId+maU9jCnsIwB/VEK7nOLu3nqP8/Ayi6EWa0sogPYg2kJA== 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 4PdL3D004szMpX; Fri, 17 Mar 2023 10:29:27 +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 32HATRDI067405; Fri, 17 Mar 2023 10:29:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32HATR41067404; Fri, 17 Mar 2023 10:29:27 GMT (envelope-from git) Date: Fri, 17 Mar 2023 10:29:27 GMT Message-Id: <202303171029.32HATR41067404@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: d2da92306a89 - stable/13 - bhyvectl: correct socket_fd closing 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: d2da92306a89e62f8858e449318a1183f0181a8b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=d2da92306a89e62f8858e449318a1183f0181a8b commit d2da92306a89e62f8858e449318a1183f0181a8b Author: Vitaliy Gusev AuthorDate: 2023-03-06 11:30:44 +0000 Commit: Corvin Köhne CommitDate: 2023-03-17 10:26:33 +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 (cherry picked from commit b64ba2426441ed33120ef0d3057417b7c0be6972) --- 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); }