Check to make sure key version number is 1, not 0
authorTheodore Tso <tytso@mit.edu>
Thu, 6 Oct 1994 16:45:22 +0000 (16:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 6 Oct 1994 16:45:22 +0000 (16:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4461 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/verify/ChangeLog
src/tests/verify/kdb5_verify.c

index 8287ace509a03ff1210b21a87516ef263ce5889f..05c9aaa48a921535ae3428d7040161ca88e3298b 100644 (file)
@@ -1,3 +1,8 @@
+Thu Oct  6 12:42:47 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * kdb5_verify.c (check_princ): Check to make sure key version
+               number is 1, not 0.
+
 Thu Sep 29 23:00:05 1994  Theodore Y. Ts'o  (tytso@dcl)
 
        * Makefile.in: Relink executable when libraries change
index 4772c5d094df3b4989a2e277c326ef076731cafe..c2f0813265065e5768b43ffdc8e1934a478cfc75 100644 (file)
@@ -313,7 +313,7 @@ errout:
     free((char *)pwd_key.contents);
     free((char *)db_key.contents);
 
-    if (kdbe.kvno != 0) {
+    if (kdbe.kvno != 1) {
       fprintf(stderr, "\tkvno did not match stored value for %s.\n", str_princ);
       goto errout;
     }