aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clients/kdestroy/ChangeLog5
-rw-r--r--src/clients/kdestroy/kdestroy.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog
index fd6e321..457bdc0 100644
--- a/src/clients/kdestroy/ChangeLog
+++ b/src/clients/kdestroy/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-16 Ezra Peisach <epeisach@mit.edu>
+
+ * kdestroy.c: Do not define variables if v4 compatilibilty is not
+ defined.
+
2000-03-07 Danilo Almeida <dalmeida@mit.edu>
* kdestroy.M: Make up-to-date.
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c
index c831f90..d322555 100644
--- a/src/clients/kdestroy/kdestroy.c
+++ b/src/clients/kdestroy/kdestroy.c
@@ -92,10 +92,12 @@ main(argc, argv)
krb5_ccache cache = NULL;
char *cache_name = NULL;
int code = 0;
+#ifdef KRB5_KRB4_COMPAT
int v4code = 0;
+ int v4 = 1;
+#endif
int errflg = 0;
int quiet = 0;
- int v4 = 1;
int use_k5 = 0;
int use_k4 = 0;
@@ -173,7 +175,9 @@ main(argc, argv)
}
if (cache_name) {
+#ifdef KRB5_KRB4_COMPAT
v4 = 0; /* Don't do v4 if doing v5 and cache name given. */
+#endif
code = krb5_cc_resolve (kcontext, cache_name, &cache);
if (code != 0) {
com_err (progname, code, "while resolving %s", cache_name);