From 456af9241e79a7eb0fa514c2d346f1899495c332 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Thu, 11 Apr 1996 23:37:15 +0000 Subject: [PATCH] * 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 --- src/admin/edit/ChangeLog | 6 ++++++ src/admin/edit/kdb5_edit.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.26.2