kadm5_setkey_principal_3 not copying key_data_ver and key_data_kvno
authorAlexandra Ellwood <lxs@mit.edu>
Wed, 25 Jun 2008 19:50:11 +0000 (19:50 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Wed, 25 Jun 2008 19:50:11 +0000 (19:50 +0000)
Added lines to copy these fields.

ticket: new
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20472 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/srv/svr_principal.c

index e7c56633871a31c1fd4b0c5fad7ca32f38faf841..4fb114f3570a0a26e60a80b5b96051fd1442cf05 100644 (file)
@@ -1891,6 +1891,8 @@ kadm5_setkey_principal_3(void *server_handle,
            goto done;
        }
        tptr = &kdb.key_data[i];
+       tptr->key_data_ver = tmp_key_data.key_data_ver;
+       tptr->key_data_kvno = tmp_key_data.key_data_kvno;
        for (k = 0; k < tmp_key_data.key_data_ver; k++) {
            tptr->key_data_type[k] = tmp_key_data.key_data_type[k];
            tptr->key_data_length[k] = tmp_key_data.key_data_length[k];