From: John Kohl Date: Tue, 13 Feb 1990 16:50:21 +0000 (+0000) Subject: correct arithmetic error in computing keysize X-Git-Tag: krb5-1.0-alpha2~1026 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3990c92c5752666b044dc455d9635adcbc0713ac;p=krb5.git correct arithmetic error in computing keysize git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@358 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/kdb_dbm.c b/src/lib/kdb/kdb_dbm.c index c839b5372..c8fe446cf 100644 --- a/src/lib/kdb/kdb_dbm.c +++ b/src/lib/kdb/kdb_dbm.c @@ -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);