[cups.bugs] [HIGH] STR #1515: 'lpq -h anything' segfaults
twaugh.redhat
twaugh at redhat.com
Mon Mar 27 03:32:12 PST 2006
[STR New]
Using the '-h' option to lpq causes it to segfault. Here is a patch that
causes it not to segfault, but I don't think the -h functionality is
working either.
--- cups-1.2rc1/berkeley/lpq.c.lpq 2006-03-27 12:12:04.000000000
+0100
+++ cups-1.2rc1/berkeley/lpq.c 2006-03-27 12:12:11.000000000 +0100
@@ -186,9 +186,6 @@
break;
case 'h' : /* Connect to host */
- if (http != NULL)
- httpClose(http);
-
if (argv[i][2] != '\0')
cupsSetServer(argv[i] + 2);
else
The problem is that 'http' is used after it is closed.
Link: http://www.cups.org/str.php?L1515
Version: 1.2b2
More information about the cups-devel
mailing list