summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_registry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 1d9546a8bd..3c9177df52 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -1447,6 +1447,7 @@ int net_registry(struct net_context *c, int argc, const char **argv)
};
if (!c->display_usage
+ && argc > 0
&& (strcasecmp_m(argv[0], "convert") != 0)
&& (strcasecmp_m(argv[0], "check") != 0))
{