From: Todd C. Miller Date: Wed, 4 May 2016 17:15:20 +0000 (-0600) Subject: Fix cut and paste error when checking cols for 0. X-Git-Tag: SUDO_1_8_17^2~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20ff6023aa5254f79ad6defc94639d3130b26d6b;p=sudo Fix cut and paste error when checking cols for 0. Coverity CID 104081 --- diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c index 481f21aab..a28a57486 100644 --- a/plugins/sudoers/policy.c +++ b/plugins/sudoers/policy.c @@ -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; }