summaryrefslogtreecommitdiff
path: root/cups/tlscheck.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-05-19 02:26:15 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-05-19 02:26:15 +0000
commitfb9d90d672f0662b2caf7360254b07cfe83d104b (patch)
treedbbddb78c52daa31677d8d90cd2310dbbb4d780d /cups/tlscheck.c
parent72b9a3131af06ce49232e5ed693fa58fc1f3ab9e (diff)
downloadcups-fb9d90d672f0662b2caf7360254b07cfe83d104b.tar.gz
Add a check for "=" in the port number (to work around an ippfind bug)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12637 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/tlscheck.c')
-rw-r--r--cups/tlscheck.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cups/tlscheck.c b/cups/tlscheck.c
index 05411cc5e..f75c7cfd2 100644
--- a/cups/tlscheck.c
+++ b/cups/tlscheck.c
@@ -46,7 +46,12 @@ main(int argc, /* I - Number of command-line arguments */
}
if (argc == 3)
- port = atoi(argv[2]);
+ {
+ if (argv[2][0] == '=')
+ port = atoi(argv[2] + 1);
+ else
+ port = atoi(argv[2]);
+ }
http = httpConnect2(server, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_ALWAYS, 1, 30000, NULL);
if (!http)