]> granicus.if.org Git - shadow/commitdiff
* src/login.c: Fix failure of non PAM enabled versions when an
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 16 May 2009 15:43:13 +0000 (15:43 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 16 May 2009 15:43:13 +0000 (15:43 +0000)
empty username is entered after a first prompt.

ChangeLog
src/login.c

index 3bec2acb74fe13dbedec929d2c9ceff430a3f1e4..e18c23197d5811a12ed3bd4a0cefa3617349b407 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * src/passwd.c: Added missing end of line at the end of success
index abf649e435bfaeb6642f17ec9de161b0784dc869..44ef8f8e814c4ca5b1c7474fd6fb786245b878a2 100644 (file)
@@ -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);