mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-25 09:13:26 +00:00
Fix leak in uid and gid determination.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1328 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
978f4d55e8
commit
30065ae175
@ -227,6 +227,7 @@ static void aisexec_uid_determine (struct main_config *main_config)
|
||||
openais_exit_error (AIS_DONE_UID_DETERMINE);
|
||||
}
|
||||
ais_uid = passwd->pw_uid;
|
||||
endpwent ();
|
||||
}
|
||||
|
||||
static void aisexec_gid_determine (struct main_config *main_config)
|
||||
@ -238,6 +239,7 @@ static void aisexec_gid_determine (struct main_config *main_config)
|
||||
openais_exit_error (AIS_DONE_GID_DETERMINE);
|
||||
}
|
||||
gid_valid = group->gr_gid;
|
||||
endgrent ();
|
||||
}
|
||||
|
||||
static void aisexec_priv_drop (void)
|
||||
|
Loading…
Reference in New Issue
Block a user