Don't try v5 if (only) `-4' is specified.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4773 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -557,7 +557,7 @@ doit (char *hostname,
|
||||
#ifdef KRB4
|
||||
static int use_v4 = 0;
|
||||
#endif
|
||||
static int use_v5 = 1;
|
||||
static int use_v5 = 0;
|
||||
static int use_only_broken = 0;
|
||||
static int use_broken = 1;
|
||||
static char *port_str;
|
||||
@@ -627,6 +627,12 @@ main(int argc, char **argv)
|
||||
&optind))
|
||||
usage (1);
|
||||
|
||||
/* default to v5 */
|
||||
#ifdef KRB4
|
||||
if(use_v4 == 0 && use_v5 == 0)
|
||||
#endif
|
||||
use_v5 = 1;
|
||||
|
||||
if (use_only_broken) {
|
||||
#ifdef KRB4
|
||||
use_v4 = 0;
|
||||
|
Reference in New Issue
Block a user