4d7dee6cf2f288286da304fb82d4f379cc45c5b1 galt Thu Mar 23 23:36:08 2017 -0700 avoid errAbort in https.c diff --git src/lib/https.c src/lib/https.c index 1f41284..68e64b6 100644 --- src/lib/https.c +++ src/lib/https.c @@ -131,31 +131,36 @@ */ // Don't want any retries since we are non-blocking bio now // This is available on newer versions of openssl //SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); // Support for Http Proxy struct netParsedUrl pxy; if (proxyUrl) { netParseUrl(proxyUrl, &pxy); if (!sameString(pxy.protocol, "http")) - errAbort("Unknown proxy protocol %s in %s.", pxy.protocol, proxyUrl); + { + char s[256]; + safef(s, sizeof s, "Unknown proxy protocol %s in %s. Should be http.", pxy.protocol, proxyUrl); + xerr(s); + goto cleanup; + } connectHost = pxy.host; connectPort = atoi(pxy.port); } else { connectHost = params->hostName; connectPort = params->port; } fd = netConnect(connectHost,connectPort); if (fd == -1) { xerr("netConnect() failed"); goto cleanup; }