Add default case to chain type switch to remove gcc warning.

pull/22/merge^2
crass 2013-06-26 07:02:42 +07:00
parent 1ac3334e99
commit 7d60f55c60
1 changed files with 4 additions and 1 deletions

View File

@ -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");