summaryrefslogtreecommitdiff
path: root/source3/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/locktest.c')
-rw-r--r--source3/torture/locktest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index 63b9590dd6..5f9a63802b 100644
--- a/source3/torture/locktest.c
+++ b/source3/torture/locktest.c
@@ -24,7 +24,6 @@
static fstring password[2];
static fstring username[2];
-static int got_user;
static int got_pass;
static BOOL use_kerberos;
static int numops = 1000;
@@ -603,13 +602,13 @@ static void usage(void)
case 'k':
#ifdef HAVE_KRB5
use_kerberos = True;
+ got_pass = True;
#else
d_printf("No kerberos support compiled in\n");
exit(1);
#endif
break;
case 'U':
- got_user = 1;
if (got_pass == 2) {
d_printf("Max of 2 usernames\n");
exit(1);
@@ -664,8 +663,6 @@ static void usage(void)
}
}
- if(use_kerberos && !got_user) got_pass = True;
-
argc -= optind;
argv += optind;