mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-20 02:38:43 +00:00
Don't dereference NULL pwd on non-existant username (I wonder how long
THAT has been in here!).
This commit is contained in:
parent
5ea6dc36ff
commit
d87e2a2cc5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21950
@ -417,7 +417,8 @@ main(argc, argv)
|
||||
}
|
||||
#endif /* SKEY */
|
||||
#else /* !KERBEROS */
|
||||
rval = strcmp(ep, pwd->pw_passwd);
|
||||
if (pwd)
|
||||
rval = strcmp(ep, pwd->pw_passwd);
|
||||
#endif /* KERBEROS */
|
||||
/* clear entered password */
|
||||
memset(p, 0, strlen(p));
|
||||
|
Loading…
Reference in New Issue
Block a user