+Thu Mar 4 18:46:55 1999 Tom Yu <tlyu@mit.edu>
+
+ * heuristic.c (get_authorized_princ_names): Fix to not call
+ list_union() if cmd is NULL, otherwise freed memory gets
+ referenced.
+
Thu Feb 18 22:26:30 1999 Tom Yu <tlyu@mit.edu>
* Makefile.in (ksu): Add $(KSU_LIBS) in case we need -lsecurity.
}
}
- if(retval = list_union(k5login_list, k5users_filt_list, &combined_list)){
- close_time(k5users_flag,users_fp, k5login_flag,login_fp);
- return retval;
- }
-
close_time(k5users_flag,users_fp, k5login_flag, login_fp);
if (cmd) {
+ if (retval = list_union(k5login_list,
+ k5users_filt_list, &combined_list)){
+ close_time(k5users_flag,users_fp, k5login_flag,login_fp);
+ return retval;
+ }
*princ_list = combined_list;
return 0;
} else {
+ if (k5users_filt_list != NULL)
+ free(k5users_filt_list);
*princ_list = k5login_list;
return 0;
}