Fixup r325264

Accidentally committed an incomplete diff.
This commit is contained in:
Mateusz Guzik 2017-11-01 06:38:46 +00:00
parent c0b5261b55
commit 5d03f1e11f

View File

@ -136,7 +136,7 @@ loginclass_find(const char *name)
if (name[0] == '\0' || strlen(name) >= MAXLOGNAME)
return (NULL);
lc = cred->cr_loginclass;
lc = curthread->td_ucred->cr_loginclass;
if (strcmp(name, lc->lc_name) == 0) {
loginclass_hold(lc);
return (lc);