mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue