* src/login.c: Fix failure of non PAM enabled versions when an

empty username is entered after a first prompt.
This commit is contained in:
nekral-guest 2009-05-16 15:43:13 +00:00
parent d945d61e42
commit 9ee294ba70
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-05-16 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Fix failure of non PAM enabled versions when an
empty username is entered after a first prompt.
2009-05-16 Nicolas François <nicolas.francois@centraliens.net> 2009-05-16 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Added missing end of line at the end of success * src/passwd.c: Added missing end of line at the end of success

View File

@ -913,6 +913,7 @@ int main (int argc, char **argv)
* anymore. */ * anymore. */
if (NULL != pwd) { if (NULL != pwd) {
pw_free (pwd); pw_free (pwd);
pwd = NULL;
} }
if (NULL != spwd) { if (NULL != spwd) {
spw_free (spwd); spw_free (spwd);