From 4b4d67d4fb28b1c1096180ffd0231571bd8d6b18 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 19 Jan 2019 22:59:37 +0000 Subject: [PATCH] Strips off tabs and trailing spaces --- ncat/ncat_connect.c | 4 ++-- ncat/ncat_main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c index de8db9564..e044423d9 100644 --- a/ncat/ncat_connect.c +++ b/ncat/ncat_connect.c @@ -1049,7 +1049,7 @@ int ncat_connect(void) /* A proxy connection. */ static int connect_socket; - if (strcmp(o.proxytype, "http") == 0) { + if (strcmp(o.proxytype, "http") == 0) { connect_socket = do_proxy_http(); } else if (strcmp(o.proxytype, "socks4") == 0) { connect_socket = do_proxy_socks4(); @@ -1310,7 +1310,7 @@ static void read_socket_handler(nsock_pool nsp, nsock_event evt, void *data) if (status == NSE_STATUS_EOF) { #ifdef WIN32 - _close(STDOUT_FILENO); + _close(STDOUT_FILENO); #else Close(STDOUT_FILENO); #endif diff --git a/ncat/ncat_main.c b/ncat/ncat_main.c index 13a029faa..959b4e780 100644 --- a/ncat/ncat_main.c +++ b/ncat/ncat_main.c @@ -277,7 +277,7 @@ int main(int argc, char *argv[]) struct host_list_node *allow_host_list = NULL; struct host_list_node *deny_host_list = NULL; - unsigned short proxyport; + unsigned short proxyport; int srcport = -1; char *source = NULL; @@ -732,7 +732,7 @@ int main(int argc, char *argv[]) proxyport = DEFAULT_SOCKS4_PORT; else if (!strcmp(o.proxytype, "socks5") || !strcmp(o.proxytype, "5")) proxyport = DEFAULT_SOCKS5_PORT; - else + else bye("Invalid proxy type \"%s\".", o.proxytype); /* Parse HTTP/SOCKS proxy address and store it in targetss.