From e97649597a0c81603e632481baeeeabbcc7a0108 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Apr 2004 17:03:39 +0000 Subject: More race condition fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@535 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/connection.cpp b/src/connection.cpp index 78b9ed17a..b1ed34455 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -289,7 +289,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey) return false; } - log(DEBUG,"connection::RecvPacket(): received packet type %d '%s'",p.type,p.data); + log(DEBUG,"connection::RecvPacket(): received packet type %d '%s' from '%s'",p.type,p.data,inet_ntoa(host_address.sin_addr)); if (p.type == PT_SYN_ONLY) { @@ -314,8 +314,8 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey) strcpy(message,p.data); strcpy(host,inet_ntoa(host_address.sin_addr)); theirkey = p.key; - prt = ntohs(host_address.sin_port); - SendACK(host,this->port,p.id); + prt = ntohs(host_address.sin_port); // the port we received it on + SendACK(host,prt,p.id); return true; } -- cgit v1.2.3