diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 12:54:02 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 12:54:02 +0000 |
commit | 8673ed156552bd8add414f536a5043a66927087c (patch) | |
tree | ab7237fbc9b1079e7c984061bd2f4f9b605c3470 /usr.bin/login | |
parent | 9e461e53cca0165c576f84491ad1a8afabdb354e (diff) | |
download | src-8673ed156552bd8add414f536a5043a66927087c.tar.gz src-8673ed156552bd8add414f536a5043a66927087c.zip |
Notes
Diffstat (limited to 'usr.bin/login')
-rw-r--r-- | usr.bin/login/login.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index d52ab4767de4..4a2abb49339d 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -745,8 +745,8 @@ export_pam_environment() pam_env = pam_getenvlist(pamh); if (pam_env != NULL) { for (pp = pam_env; *pp != NULL; pp++) { - (void)export(*pp); - /* Don't free putenv() memory! */ + if (!export(*pp)) + free(*pp); } } } |