FreeBSD Bugzilla – Attachment 186736 Details for
Bug 222620
[patch] usr.sbin/ppp/auth.c: Incorrect NOPAM section in auth_CheckPasswd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
auth.c patch
auth-c.diff.txt (text/plain), 724 bytes, created by
Lubos Boucek
on 2017-09-26 11:13:21 UTC
(
hide
)
Description:
auth.c patch
Filename:
MIME Type:
Creator:
Lubos Boucek
Created:
2017-09-26 11:13:21 UTC
Size:
724 bytes
patch
obsolete
>Index: auth.c >=================================================================== >--- auth.c (revision 323670) >+++ auth.c (working copy) >@@ -125,13 +125,19 @@ > #ifdef NOPAM > /* Then look up the real password database */ > struct passwd *pw; >- int result; >+ int result = 0; > char *cryptpw; >+ >+ pw = getpwnam(name); > >- cryptpw = crypt(key, pw->pw_passwd); >- result = (pw = getpwnam(name)) && >- (cryptpw == NULL || !strcmp(cryptpw, pw->pw_passwd)); >+ if (pw) { >+ cryptpw = crypt(key, pw->pw_passwd); >+ >+ result = cryptpw != NULL && !strcmp(cryptpw, pw->pw_passwd); >+ } >+ > endpwent(); >+ > return result; > #else /* !NOPAM */ > /* Then consult with PAM. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 222620
: 186736