+Wed Jul 24 14:18:13 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * Makefile.in (all): Use $(LD) instead of $(CC) for link stage.
+
+ * dump.c (dump_db): Zero out kadm5_principal_ent_rec structure
+ before passing to rpc code.
+
+ * kadmin.c (kadmin_addprinc, kadmin_getprinc, kadmin_modprinc):
+ Zero out structures before passing to rpc code.
+
Tue Jul 23 17:02:04 1996 Tom Yu <tlyu@voltage-multiplier.mit.edu>
* Makefile.in: add dependency for kadmin_ct.o
all:: $(PROG).local $(PROG)
$(PROG).local: $(OBJS) $(SRVDEPLIBS)
- $(CC) $(LDFLAGS) $(LDARGS) -o $(PROG).local $(OBJS) $(SRVLIBS)
+ $(LD) $(LDFLAGS) $(LDARGS) -o $(PROG).local $(OBJS) $(SRVLIBS)
$(PROG): $(OBJS) $(CLNTDEPLIBS)
- $(CC) $(LDFLAGS) $(LDARGS) -o $(PROG) $(OBJS) $(CLNTLIBS)
+ $(LD) $(LDFLAGS) $(LDARGS) -o $(PROG) $(OBJS) $(CLNTLIBS)
kadmin_ct.o: kadmin_ct.c
static char newpw[1024];
static char prompt1[1024], prompt2[1024];
+ /* Zero all fields in request structure */
+ memset(&princ, 0, sizeof(princ));
+
princ.attributes = 0;
if (kadmin_parse_princ_args(argc, argv,
&princ, &mask, &pass, &randkey,
return;
}
+ memset(&oldprinc, 0, sizeof(oldprinc));
+ memset(&princ, 0, sizeof(princ));
+
retval = kadmin_parse_name(argv[argc - 1], &kprinc);
if (retval) {
com_err("modify_principal", retval, "while parsing principal");
fprintf(stderr, "usage: get_principal [-terse] principal\n");
return;
}
+
+
+ memset(&dprinc, 0, sizeof(dprinc));
+ memset(&princ, 0, sizeof(princ));
+
retval = kadmin_parse_name(argv[argc - 1], &princ);
if (retval) {
com_err("get_principal", retval, "while parsing principal");