Skip to content

@cwoac /gist:6521557
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Patch for redir on x64
--- 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
Something went wrong with that request. Please try again.