Project

General

Profile

Bug #171 ยป 6977897.txt

Gordon Ross, 2010-09-08 09:38 AM

 
1
diff ... usr/src/lib/libbsm/common/adt.c
2
--- a/usr/src/lib/libbsm/common/adt.c
3
+++ b/usr/src/lib/libbsm/common/adt.c
4
@@ -204,11 +204,12 @@
5
 			free(pwd_buff);
6
 			return (-1);
7
 		}
8
-		free(pwd_buff);
9
 		if (au_user_mask(pwd.pw_name, mask)) {
10
 			errno = EFAULT; /* undetermined failure */
11
+			free(pwd_buff);
12
 			return (-1);
13
 		}
14
+		free(pwd_buff);
15
 	} else if (auditon(A_GETKMASK, (caddr_t)mask, sizeof (*mask)) == -1) {
16
 			return (-1);
17
 	}
    (1-1/1)