From: MikeLiu Date: Fri, 29 Aug 2025 09:31:36 +0000 (+0800) Subject: s3:net: fix "net ads group" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8738fa1cc42d913e3ab2b54fe1e75ca4da37073f;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 --- diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index f77c2b8210a..6c11faeb091 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1360,7 +1360,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); }