]> granicus.if.org Git - sudo/commitdiff
Fix cut and paste error when checking cols for 0.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 May 2016 17:15:20 +0000 (11:15 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 May 2016 17:15:20 +0000 (11:15 -0600)
Coverity CID 104081

plugins/sudoers/policy.c

index 481f21aab8abffea83135f7ed858f00c6295e304..a28a57486945ace98ced1b9b25d00361e03297ed 100644 (file)
@@ -331,7 +331,7 @@ sudoers_policy_deserialize_info(void *v, char **runas_user, char **runas_group)
            errno = 0;
            p = *cur + sizeof("cols=") - 1;
            sudo_user.cols = strtonum(p, 1, INT_MAX, &errstr);
-           if (sudo_user.lines == 0) {
+           if (sudo_user.cols == 0) {
                sudo_warnx(U_("%s: %s"), *cur, U_(errstr));
                goto bad;
            }