From: msweet Date: Tue, 19 May 2015 02:26:15 +0000 (+0000) Subject: Add a check for "=" in the port number (to work around an ippfind bug) X-Git-Tag: v2.2b1~302 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb9d90d672f0662b2caf7360254b07cfe83d104b;p=thirdparty%2Fcups.git 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 --- diff --git a/cups/tlscheck.c b/cups/tlscheck.c index 05411cc5e5..f75c7cfd28 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)