about summary refs log tree commit diff
path: root/src/engine/system.c
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-08 19:54:18 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-08 19:54:18 +0000
commit6475366e5955e71706c8cd37f07452732a5e1458 (patch)
treee645a02ec68ef794e5fbae4d87a9adad10c14197 /src/engine/system.c
parent6dd9aead7340080773fbac0996912f7fc18f091b (diff)
downloadzcatch-6475366e5955e71706c8cd37f07452732a5e1458.tar.gz
zcatch-6475366e5955e71706c8cd37f07452732a5e1458.zip
fixed lan browser. fixed major bug in the caused the server not to report correctly
Diffstat (limited to 'src/engine/system.c')
-rw-r--r--src/engine/system.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/system.c b/src/engine/system.c
index a6fb362c..e0fcc0b5 100644
--- a/src/engine/system.c
+++ b/src/engine/system.c
@@ -450,6 +450,8 @@ int net_udp4_send(NETSOCKET sock, const NETADDR4 *addr, const void *data, int si
 	mem_zero(&sa, sizeof(sa));
 	netaddr4_to_sockaddr(addr, &sa);
 	d = sendto((int)sock, (const char*)data, size, 0, &sa, sizeof(sa));
+	if(d < 0)
+		dbg_msg("net", "sendto error %d %x", d, d);
 	return d;
 }