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

@@ -124,6 +124,7 @@ _kadm5_set_keys2(kadm5_server_context *context,
memset(&keys, 0, sizeof (keys));
memset(&hkset, 0, sizeof (hkset)); /* set set_time */
memset(&ext, 0, sizeof (ext));
ext.data.element = choice_HDB_extension_data_hist_keys;
memset(hist_keys, 0, sizeof (*hist_keys));