summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-09-05 04:30:53 +0000
committerTim Potter <tpot@samba.org>2001-09-05 04:30:53 +0000
commit9888362b39d8e1383cc7209f2f414d6d34f3df8e (patch)
tree55bfc86fa6ca2e52b6c06545d01dc757dc577547 /source3/rpcclient
parentd3518f1d8a63cab323a9c5c94d5eb552302b4df6 (diff)
downloadsamba-9888362b39d8e1383cc7209f2f414d6d34f3df8e.tar.gz
samba-9888362b39d8e1383cc7209f2f414d6d34f3df8e.tar.bz2
samba-9888362b39d8e1383cc7209f2f414d6d34f3df8e.zip
Don't crash if run with no command line arguments. (-:
(This used to be commit a46e9cc3a1a247fba8fe9b4cdfa16954071b4a35)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 57ae56521d..a60d7fa3cb 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -651,7 +651,7 @@ static void usage(void)
argc -= optind;
/* Parse options */
- if (argc > 1) {
+ if (argc < 2) {
usage();
return 0;
}