Fix unitialized HDB_extension problem (specifically the mandatory field)

This commit is contained in:
Nicolas Williams
2011-10-31 00:20:05 -05:00
parent 7da9d7d75f
commit 104bb8ef53
3 changed files with 4 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ kadm5_s_randkey_principal(void *server_handle,
} else {
HDB_extension ext;
memset(&ext, 0, sizeof (ext));
ext.data.element = choice_HDB_extension_data_hist_keys;
ext.data.u.hist_keys.len = 0;
ext.data.u.hist_keys.val = NULL;