Created
September 11, 2013 09:54
-
-
Save cwoac/6521557 to your computer and use it in GitHub Desktop.
Patch for redir on x64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- redir.c 2013-09-11 10:45:39.694593685 +0100 | |
+++ redir.c.orig 1999-12-26 20:50:06.000000000 +0000 | |
@@ -78,7 +78,6 @@ | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#include <errno.h> | |
-#include <time.h> | |
#ifdef USE_TCP_WRAPPERS | |
#include <tcpd.h> | |
@@ -461,7 +460,7 @@ | |
int lport, rport; | |
int remip[4]; | |
int localsock; | |
- unsigned int socksize = sizeof(struct sockaddr_in); | |
+ int socksize = sizeof(struct sockaddr_in); | |
struct sockaddr_in newsession; | |
struct sockaddr_in sockname; | |
@@ -717,7 +716,7 @@ | |
int clisock; | |
int targetsock; | |
struct sockaddr_in client; | |
- unsigned int clientlen = sizeof(client); | |
+ int clientlen = sizeof(client); | |
int accept_errno; | |
debug("top of accept loop\n"); | |
@@ -1053,7 +1052,7 @@ | |
if (inetd) { | |
int targetsock; | |
struct sockaddr_in client; | |
- unsigned int client_size = sizeof(client); | |
+ int client_size = sizeof(client); | |
#ifdef USE_TCP_WRAPPERS | |
request_init(&request, RQ_DAEMON, ident, RQ_FILE, 0, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment