Skip to content

Commit d60dcaa

Browse files
committed
mask request bytes before ctype calls in client.c
1 parent 877b7ee commit d60dcaa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scheduler/client.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */
761761
_cups_strcasecmp(hostname, ServerName) &&
762762
_cups_strcasecmp(hostname, "localhost") &&
763763
!cupsArrayFind(ServerAlias, hostname) &&
764-
!isdigit(hostname[0]) && hostname[0] != '[')
764+
!isdigit(hostname[0] & 255) && hostname[0] != '[')
765765
{
766766
/*
767767
* Nope, we don't do proxies...
@@ -2683,18 +2683,18 @@ check_if_modified(
26832683

26842684
while (*ptr != '\0')
26852685
{
2686-
while (isspace(*ptr) || *ptr == ';')
2686+
while (isspace(*ptr & 255) || *ptr == ';')
26872687
ptr ++;
26882688

26892689
if (_cups_strncasecmp(ptr, "length=", 7) == 0)
26902690
{
26912691
ptr += 7;
26922692
size = strtoll(ptr, NULL, 10);
26932693

2694-
while (isdigit(*ptr))
2694+
while (isdigit(*ptr & 255))
26952695
ptr ++;
26962696
}
2697-
else if (isalpha(*ptr))
2697+
else if (isalpha(*ptr & 255))
26982698
{
26992699
date = httpGetDateTime(ptr);
27002700
while (*ptr != '\0' && *ptr != ';')

0 commit comments

Comments
 (0)