summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-10-19 19:28:26 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-10-19 19:28:26 +0200
commiteba2211427b4b9c2527b1ae7945069976315f52f (patch)
tree716c250f7a0b44ee18eed5ef16246817b6d04940
parent4b6eac3172cf9074f7ad579d4a6aa5096b429f2e (diff)
downloadweechat-eba2211427b4b9c2527b1ae7945069976315f52f.zip
relay: fix crash when receiving a new client on a socket
-rw-r--r--src/plugins/relay/relay-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-server.c b/src/plugins/relay/relay-server.c
index 19600fb39..8723c5878 100644
--- a/src/plugins/relay/relay-server.c
+++ b/src/plugins/relay/relay-server.c
@@ -239,7 +239,7 @@ relay_server_sock_cb (void *data, int fd)
client_addr_size = sizeof (struct sockaddr_in);
}
- memset (&client_addr, 0, client_addr_size);
+ memset (ptr_addr, 0, client_addr_size);
client_fd = accept (server->sock, (struct sockaddr *)ptr_addr,
&client_addr_size);