From: Richard Basch Date: Thu, 11 Apr 1996 23:37:15 +0000 (+0000) Subject: * kdb5_edit.c (extract_v4_srvtab): Use the matching key_data's kvno; X-Git-Tag: krb5-1.0-beta6~223 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=456af9241e79a7eb0fa514c2d346f1899495c332;p=krb5.git * kdb5_edit.c (extract_v4_srvtab): Use the matching key_data's kvno; don't assume that key_data[0]'s kvno is necessarily the matching key_data's kvno. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7792 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/edit/ChangeLog b/src/admin/edit/ChangeLog index cf400c161..f078f42d1 100644 --- a/src/admin/edit/ChangeLog +++ b/src/admin/edit/ChangeLog @@ -1,3 +1,9 @@ +Thu Apr 11 19:32:36 1996 Richard Basch + + * kdb5_edit.c (extract_v4_srvtab): Use the matching key_data's kvno; + don't assume that key_data[0]'s kvno is necessarily the matching + key_data's kvno. + Wed Apr 10 19:17:58 1996 Richard Basch * kdb5_edit.c (extract_v4_srvtab): Translate the principal name to diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 7aa0f63ad..a3ac6fd06 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -904,7 +904,7 @@ void extract_v4_srvtab(argc, argv) fwrite(v4_inst, strlen(v4_inst) + 1, 1, fout); /* p.instance */ fwrite(v4_realm, strlen(v4_realm) + 1, 1, fout); /* p.realm */ - kvno = (unsigned char) dbentry.key_data[0].key_data_kvno; + kvno = (unsigned char) pkey->key_data_kvno; fwrite((char *)&kvno, sizeof(kvno), 1, fout); fwrite((char *)key.contents, 8, 1, fout); printf("'%s' added to V4 srvtab '%s'\n", pname, ktname);