From: Todd C. Miller Date: Fri, 23 Mar 2018 15:54:52 +0000 (-0600) Subject: Fix typo in strcmp(), we are comparing var not val. X-Git-Tag: SUDO_1_8_23^2~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6da40a7b5bb2f486ed74f33b936908fdc789cd31;p=sudo Fix typo in strcmp(), we are comparing var not val. --- diff --git a/plugins/sudoers/ldap_util.c b/plugins/sudoers/ldap_util.c index c6d37e186..35e7d76ce 100644 --- a/plugins/sudoers/ldap_util.c +++ b/plugins/sudoers/ldap_util.c @@ -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;