From 7d60f55c60c29c7577a12b21906fe3029ca88443 Mon Sep 17 00:00:00 2001 From: crass Date: Wed, 26 Jun 2013 07:02:42 +0700 Subject: [PATCH] Add default case to chain type switch to remove gcc warning. --- src/core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 42be52d..10bdceb 100644 --- a/src/core.c +++ b/src/core.c @@ -696,7 +696,10 @@ int connect_proxy_chain(int sock, ip_type target_ip, p3->port = target_port; if(SUCCESS != chain_step(ns, p1, p3, pc->tcp_read_time_out)) goto error; - + default: + /* This should never happen */ + proxychains_write_log("\nUnhandled chain type %d. This should never happen!\n", ct); + goto error; } proxychains_write_log(TP " OK\n");