[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240206235403.17977-1-maks.mishinFZ@gmail.com>
Date: Wed, 7 Feb 2024 02:54:03 +0300
From: Maks Mishin <maks.mishinfz@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: Maks Mishin <maks.mishinFZ@...il.com>,
netdev@...r.kernel.org
Subject: [PATCH] ctrl: Fix fd leak in ctrl_list()
Signed-off-by: Maks Mishin <maks.mishinFZ@...il.com>
---
genl/ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/genl/ctrl.c b/genl/ctrl.c
index aff922a4..bae73a54 100644
--- a/genl/ctrl.c
+++ b/genl/ctrl.c
@@ -267,7 +267,7 @@ static int ctrl_list(int cmd, int argc, char **argv)
if (argc != 2) {
fprintf(stderr, "Wrong number of params\n");
- return -1;
+ goto ctrl_done;
}
if (matches(*argv, "name") == 0) {
--
2.30.2
Powered by blists - more mailing lists