]> granicus.if.org Git - sudo/commitdiff
Fix typo in strcmp(), we are comparing var not val.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Fri, 23 Mar 2018 15:54:52 +0000 (09:54 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Fri, 23 Mar 2018 15:54:52 +0000 (09:54 -0600)
plugins/sudoers/ldap_util.c

index c6d37e186e8274061b7d9e4b94503f0fbcb2c0cb..35e7d76ce36c4574b92c3dbc9d9dc8b6dc97992f 100644 (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;