Fix typo in strcmp(), we are comparing var not val.

This commit is contained in:
Todd C. Miller
2018-03-23 09:54:52 -06:00
parent 22c9ed8e77
commit 6da40a7b5b

View File

@@ -409,7 +409,7 @@ sudo_ldap_role_to_priv(const char *cn, void *hosts, void *runasusers,
if ((cmndspec->privs = strdup(val)) == NULL)
goto oom;
}
} else if (strcmp(val, "limitprivs") == 0) {
} else if (strcmp(var, "limitprivs") == 0) {
if (op == '=') {
if ((cmndspec->limitprivs = strdup(val)) == NULL)
goto oom;