]> granicus.if.org Git - sudo/commitdiff
use cp instead of *cur when comparing against plugin_path
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 31 Oct 2016 18:54:53 +0000 (12:54 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 31 Oct 2016 18:54:53 +0000 (12:54 -0600)
plugins/sudoers/iolog.c

index 0eb7fe0279c25bb67b39bbfe3d1fb903a81ca4e8..d6bfb2397f8a52b61fc1e3382de58daf2c80924a 100644 (file)
@@ -732,8 +732,8 @@ sudoers_io_open(unsigned int version, sudo_conv_t conversation,
                debug_return_int(-1);
            continue;
        }
-       if (strncmp(*cur, "plugin_path=", sizeof("plugin_path=") - 1) == 0) {
-           plugin_path = *cur + sizeof("plugin_path=") - 1;
+       if (strncmp(cp, "plugin_path=", sizeof("plugin_path=") - 1) == 0) {
+           plugin_path = cp + sizeof("plugin_path=") - 1;
            continue;
        }
     }