Skip to content

Commit f0c25a5

Browse files
committed
Sanitize requesting-user-name as needed (Issue #1145)
1 parent 1d09630 commit f0c25a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/ipp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,8 @@ main(int argc, /* I - Number of command-line args */
15521552
char *argptr = argv[2], /* Pointer into local username */
15531553
*userptr = username; /* Pointer into requesting-user-name value */
15541554

1555+
fputs("DEBUG: Trying sanitized requesting-user-name value.\n", stderr);
1556+
15551557
while (*argptr && userptr < (username + sizeof(username) - 1))
15561558
{
15571559
if (isalnum(*argptr & 255))

0 commit comments

Comments
 (0)