From: MikeLiu Date: Fri, 29 Aug 2025 09:31:36 +0000 (+0800) Subject: s3:net: fix "net ads group" X-Git-Tag: samba-4.21.8~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81e5b025498c7bded55399aa848d521ff9f7e02a;p=thirdparty%2Fsamba.git s3:net: fix "net ads group" BUG: https://bugzilla.samba.org/show_bug.cgi?id=15900 Signed-off-by: MikeLiu Reviewed-by: Volker Lendecke Reviewed-by: Noel Power Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Thu Sep 4 09:33:27 UTC 2025 on atb-devel-224 (cherry picked from commit 8738fa1cc42d913e3ab2b54fe1e75ca4da37073f) Autobuild-User(v4-21-test): Jule Anger Autobuild-Date(v4-21-test): Mon Sep 8 22:04:45 UTC 2025 on atb-devel-224 --- diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 9ba7afe1e04..4778c6d9cf4 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1353,7 +1353,7 @@ int net_ads_group(struct net_context *c, int argc, const char **argv) char *disp_fields[2] = {NULL, NULL}; int ret = -1; - if (argc >= 0) { + if (argc > 0) { TALLOC_FREE(tmp_ctx); return net_run_function(c, argc, argv, "net ads group", func); }