+Wed Aug 21 14:10:36 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * kadmin.c: memset policy structures before passing them to
+ kadm5_*_policy functions, so stack garbage >=2^32 doesn't end up
+ in a long field and confuse xdr
+
Mon Aug 19 12:11:27 1996 Barry Jaspan <bjaspan@mit.edu>
* kadmin.c: prints absolute 0 dates as "[never]", print mod date
krb5_error_code retval;
long mask;
kadm5_policy_ent_rec policy;
-
+
+ memset(&policy, 0, sizeof(policy));
if (kadmin_parse_policy_args(argc, argv, &policy, &mask, "add_policy")) {
kadmin_addmodpol_usage("add_policy");
return;
krb5_error_code retval;
long mask;
kadm5_policy_ent_rec policy;
-
+
+ memset(&policy, 0, sizeof(policy));
if (kadmin_parse_policy_args(argc, argv, &policy, &mask,
"modify_policy")) {
kadmin_addmodpol_usage("modify_policy");