From c0af4c37d2046ffb3e07dd62f266a4fb99ea5614 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 25 Jun 2012 15:00:24 +0200 Subject: [PATCH] Small fixes in proxy code. --- src/net_socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net_socket.c b/src/net_socket.c index 457392e..f49832f 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -346,7 +346,7 @@ static void do_outgoing_pipe(connection_t *c, char *command) { exit(result); #else logger(LOG_ERR, "Proxy type exec not supported on this platform!"); - return false; + return; #endif } @@ -411,9 +411,9 @@ begin: if(!proxytype) { c->socket = socket(c->address.sa.sa_family, SOCK_STREAM, IPPROTO_TCP); configure_tcp(c); - } if(proxytype == PROXY_EXEC) { + } else if(proxytype == PROXY_EXEC) { do_outgoing_pipe(c, proxyhost); - } else { + } else { proxyai = str2addrinfo(proxyhost, proxyport, SOCK_STREAM); if(!proxyai) goto begin; -- 2.25.1