diff mbox series

[1/1] libsemanage: use previous seuser when getting the previous name

Message ID 20180905200816.1533-1-nicolas.iooss@m4x.org (mailing list archive)
State Not Applicable
Headers show
Series [1/1] libsemanage: use previous seuser when getting the previous name | expand

Commit Message

Nicolas Iooss Sept. 5, 2018, 8:08 p.m. UTC
I missed this bug in commit 9ec0ea143ab5 ("libsemanage: use previous
seuser when getting the previous name").

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
---
 libsemanage/src/seusers_local.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libsemanage/src/seusers_local.c b/libsemanage/src/seusers_local.c
index 5fbb09e40b69..a79e2d3d230b 100644
--- a/libsemanage/src/seusers_local.c
+++ b/libsemanage/src/seusers_local.c
@@ -72,7 +72,7 @@  static int semanage_seuser_audit(semanage_handle_t * handle,
 	int rc = -1;
 	strcpy(msg, "login");
 	if (previous) {
-		name = semanage_seuser_get_name(seuser);
+		name = semanage_seuser_get_name(previous);
 		psename = semanage_seuser_get_sename(previous);
 		pmls = semanage_seuser_get_mlsrange(previous);
 		proles = semanage_user_roles(handle, psename);