public
Created

Patch for redir on x64

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
--- 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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.