correct arithmetic error in computing keysize
authorJohn Kohl <jtkohl@mit.edu>
Tue, 13 Feb 1990 16:50:21 +0000 (16:50 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 13 Feb 1990 16:50:21 +0000 (16:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@358 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/kdb_dbm.c

index c839b53722be2af6cd1fa634b64a90b34abc28ae..c8fe446cf4a167c425e1d2062457a0e5b7e8fbf9 100644 (file)
@@ -535,7 +535,7 @@ krb5_db_entry *entry;
     }
     entry->mod_name = mod_princ;
     nextloc += strlen(nextloc)+1;      /* advance past 2nd string */
-    keysize = contents->dsize - (nextloc - contents->dptr) - sizeof(entry->key);
+    keysize = contents->dsize - (nextloc - contents->dptr);
     if (keysize <= 0) {
        krb5_free_principal(princ);
        krb5_free_principal(mod_princ);