0.76: please submit patches for this section with actual code/doc
patches!
+* pam_unix: fixed bizarre memory leak pointed out by Fernando Trias
+ (Bug 483959 - agmorgan)
* misc string comparison length checking changes from Nalin. Modules
touched, pam_cracklib, pam_listfile, pam_unix, pam_wheel (Bug 476947 -
agmorgan)
#define AUTH_RETURN \
{ \
- if (on(UNIX_LIKE_AUTH, ctrl) && ret_data) { \
+ if (on(UNIX_LIKE_AUTH, ctrl)) { \
D(("recording return code for next time [%d]", \
retval)); \
pam_set_data(pamh, "unix_setcred_return", \
,int argc, const char **argv)
{
unsigned int ctrl;
- int retval, *ret_data = NULL;
+ int retval;
const char *name, *p;
D(("called."));
ctrl = _set_ctrl(pamh, flags, NULL, argc, argv);
- /* Get a few bytes so we can pass our return value to
- pam_sm_setcred(). */
- ret_data = malloc(sizeof(int));
-
/* get the user'name' */
retval = pam_get_user(pamh, &name, "login: ");