Skip to content

Commit a0c075b

Browse files
committed
Check the whole value
1 parent b8a4780 commit a0c075b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

scheduler/conf.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,12 +3026,15 @@ parse_variable(
30263026
return (0);
30273027
}
30283028

3029-
if (!isdigit(*value & 255))
3029+
while (*value)
30303030
{
3031-
cupsdLogMessage(CUPSD_LOG_ERROR,
3032-
"Bad integer value for %s on line %d of %s.",
3033-
line, linenum, filename);
3034-
return (0);
3031+
if (!isdigit(*value++))
3032+
{
3033+
cupsdLogMessage(CUPSD_LOG_ERROR,
3034+
"Bad integer value for %s on line %d of %s.",
3035+
line, linenum, filename);
3036+
return (0);
3037+
}
30353038
}
30363039

30373040
int n = (int)strtol(value, NULL, 10);

0 commit comments

Comments
 (0)