diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2015-05-06 15:30:36 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2015-05-06 15:30:36 +0000 |
commit | 2906719433d11f4695abd7c2b98b55b5d19e9c4c (patch) | |
tree | 0a7811f69862a1a26da75ead54a258d67117b618 /scheduler/cups-lpd.c | |
parent | c130ea1d8163c1ef7f4585acf6c91ca14b7cd303 (diff) |
The cups-lpd mini-daemon did not check for request parameters (STR #4603)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12611 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/cups-lpd.c')
-rw-r--r-- | scheduler/cups-lpd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scheduler/cups-lpd.c b/scheduler/cups-lpd.c index 9df6bd0bd..798ee0588 100644 --- a/scheduler/cups-lpd.c +++ b/scheduler/cups-lpd.c @@ -230,8 +230,10 @@ main(int argc, /* I - Number of command-line arguments */ * resource list, and/or user name. */ - command = line[0]; - dest = line + 1; + if ((command = line[0]) == '\0') + dest = line; + else + dest = line + 1; if (command == 0x02) list = NULL; |