Skip to content

Commit 6d97ee3

Browse files
committed
Fix cupsd crash if user does not exist on server
1 parent 936a66a commit 6d97ee3

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ CHANGES - OpenPrinting CUPS
22
===========================
33

44

5+
Changes in CUPS v2.4.18 (2026-04-22)
6+
------------------------------------
7+
8+
- Fixed cupsd crash if user does not exist (Issue #1555)
9+
10+
511
Changes in CUPS v2.4.17 (2026-04-17)
612
------------------------------------
713

scheduler/auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ cupsdIsAuthorized(cupsd_client_t *con, /* I - Connection */
18351835
name;
18361836
name = (char *)cupsArrayNext(best->names))
18371837
{
1838-
if (!_cups_strcasecmp(name, "@OWNER") && owner &&
1838+
if (!_cups_strcasecmp(name, "@OWNER") && owner && pw &&
18391839
!strcmp(pw->pw_name, ownername))
18401840
return (HTTP_OK);
18411841
else if (!_cups_strcasecmp(name, "@SYSTEM"))

0 commit comments

Comments
 (0)