selinux/policycoreutils/newrole
Nicolas Iooss bfe40222e2 policycoreutils: newrole: do not free pw strings twice
In main(), if "extract_pw_data(&pw)" returns a failed value, it has
already freed pw.pw_name, pw.pw_dir and pw.pw_shell. These fields are
freed a second time in main's err_free label, which is incorrect. Work
around this by setting them to NULL after they are freed.

This issue has been found using clang's static analyzer.

While at it, make extract_pw_data() static.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2017-04-12 14:47:45 -04:00
..
hashtab.c libsepol: use constant keys in hashtab functions 2017-01-19 08:46:19 -05:00
hashtab.h libsepol: use constant keys in hashtab functions 2017-01-19 08:46:19 -05:00
Makefile policycoreutils: Remove LDFLAGS from CFLAGS 2016-09-26 11:02:40 -04:00
newrole-lspp.pamd initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
newrole.1 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
newrole.c policycoreutils: newrole: do not free pw strings twice 2017-04-12 14:47:45 -04:00
newrole.pamd Give people who use run_init or newrole an indicator to make it not ask for passwords 2013-10-24 13:58:39 -04:00