* NEWS, srclib/getlong.c: Fix parsing of octal numbers.
* NEWS, src/login.c: Fix segfault when no user is provided on the command line.
This commit is contained in:
1 parent
70d9bc6233
commit
a24058d660
4 files changed
+27
-3
No files matched your search
+1
-1
@@ -682,7 +682,7 @@ int main (int argc, char **argv)
|
||||
set it to NULL */
|
||||
retcode = pam_get_item (pamh, PAM_USER, (const void **)ptr_pam_user);
|
||||
PAM_FAIL_CHECK;
|
||||
if (pam_user[0] == '\0') {
|
||||
if ((NULL != pam_user) && ('\0' == pam_user[0])) {
|
||||
retcode = pam_set_item (pamh, PAM_USER, NULL);
|
||||
PAM_FAIL_CHECK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user