From 03454a256a4ed109733699f8d66addf3624c6bf4 Mon Sep 17 00:00:00 2001 From: trojan Date: Fri, 17 Oct 2003 07:42:52 +0000 Subject: [PATCH] - added Changed files: cDonkey-in_addr.patch -> 1.1 --- cDonkey-in_addr.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cDonkey-in_addr.patch diff --git a/cDonkey-in_addr.patch b/cDonkey-in_addr.patch new file mode 100644 index 0000000..cef00af --- /dev/null +++ b/cDonkey-in_addr.patch @@ -0,0 +1,12 @@ +diff -Nru cDonkey-0.9.0.orig/cSocket.cpp cDonkey-0.9.0/cSocket.cpp +--- cDonkey-0.9.0.orig/cSocket.cpp 2003-05-07 20:21:33.000000000 +0200 ++++ cDonkey-0.9.0/cSocket.cpp 2003-10-17 09:28:56.660251192 +0200 +@@ -1180,7 +1180,7 @@ + }}} + // try to set our local externally visible address + void cSocket::setLocalExternalIP(struct in_addr new_addr) {{{ +- static struct in_addr last_ip_seen = 0; ++ static struct in_addr last_ip_seen = { 0 }; + static int same_ip_count = 0; + + if (new_addr.s_addr != last_ip_seen.s_addr) { -- 2.43.0