From 9ee294ba7016195b49477ecace9e5ec27aaeeb2c Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 16 May 2009 15:43:13 +0000 Subject: [PATCH] * src/login.c: Fix failure of non PAM enabled versions when an empty username is entered after a first prompt. --- ChangeLog | 5 +++++ src/login.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3bec2acb..e18c2319 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-16 Nicolas François + + * 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 * src/passwd.c: Added missing end of line at the end of success diff --git a/src/login.c b/src/login.c index abf649e4..44ef8f8e 100644 --- a/src/login.c +++ b/src/login.c @@ -913,6 +913,7 @@ int main (int argc, char **argv) * anymore. */ if (NULL != pwd) { pw_free (pwd); + pwd = NULL; } if (NULL != spwd) { spw_free (spwd);