]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add a check for "=" in the port number (to work around an ippfind bug)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 19 May 2015 02:26:15 +0000 (02:26 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 19 May 2015 02:26:15 +0000 (02:26 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12637 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/tlscheck.c

index 05411cc5e59bd71e1d65ecd1ab6aff80cce889ba..f75c7cfd2875d3e7a68bac9aa463b54b920560ec 100644 (file)
@@ -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)