From 538264a8cdd66b8a63c6ef505be7db040391c38a Mon Sep 17 00:00:00 2001 From: Holger Dengler Date: Thu, 13 Oct 2022 14:09:17 +0200 Subject: [PATCH] lszcrypt: fix parameter handling for device list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lszcrypt allows the explicit definition of a list of devices. Continue the parameter processing if multiple devices are specified. Signed-off-by: Holger Dengler Reviewed-By: Harald Freudenberger Signed-off-by: Jan Höppner --- zconf/zcrypt/lszcrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zconf/zcrypt/lszcrypt.c b/zconf/zcrypt/lszcrypt.c index c0eadce8..36833ad7 100644 --- a/zconf/zcrypt/lszcrypt.c +++ b/zconf/zcrypt/lszcrypt.c @@ -872,7 +872,7 @@ static void show_devices_argv(char *argv[]) show_device(rec, card); free(card); } - return; + continue; } if (sscanf(argv[i]+1, "%x", &dom) == 1) { /* list specific domains of all adapters */ @@ -897,7 +897,7 @@ static void show_devices_argv(char *argv[]) } free(path); } - return; + continue; } printf("Invalid adpater id!\n"); }