]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The lpstat command would crash when then "-u" option was used by a non-
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 7 Oct 2011 21:05:19 +0000 (21:05 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 7 Oct 2011 21:05:19 +0000 (21:05 +0000)
administrator (STR #3953)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10062 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.5.txt
systemv/lpstat.c

index 49b1bb23affc8f367421c78afa1c6373ae03573f..d35a02d086329d89fb26d9c12c1b357ffa909ef4 100644 (file)
@@ -4,6 +4,8 @@ CHANGES-1.5.txt
 CHANGES IN CUPS V1.5.1
 
        - Documentation updates (STR #3885, STR #3946)
+       - The lpstat command would crash when then "-u" option was used by a
+         non-administrator (STR #3953)
        - Japanese supply level reporting did not always work.
        - The DBUS notifier could crash (STR #3947)
        - Relaxed some of the page size checks in cupstestppd.
index 53039660d9c778100d1a2e07346aa9c8da9cc732..124ce7c00e399e866b6b13e66bc2f17cdf57717f 100644 (file)
@@ -580,6 +580,9 @@ match_list(const char *list,                /* I - List of names */
   if (!list || !*list)
     return (1);
 
+  if (!name)
+    return (0);
+
   while (*list)
   {
    /*