summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-10-14 16:19:03 +0200
committerMichael Adam <obnox@samba.org>2011-10-14 17:51:53 +0200
commitb15d3251ac32a51492120db09d6b7d6fdbca70b0 (patch)
tree92a7343d4f00f972e758c56bc9dcfd5d9509ffe3 /source3/utils
parent0ef506d4f31d206c300e4f3f326edac2b60bdc15 (diff)
downloadsamba-b15d3251ac32a51492120db09d6b7d6fdbca70b0.tar.gz
samba-b15d3251ac32a51492120db09d6b7d6fdbca70b0.tar.bz2
samba-b15d3251ac32a51492120db09d6b7d6fdbca70b0.zip
s3:net registry: fix segfault when net registry is called without subcommands...
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Oct 14 17:51:53 CEST 2011 on sn-devel-104
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))
{