summaryrefslogtreecommitdiff
path: root/src/plugins/xfer
diff options
context:
space:
mode:
authorAndrew Potter <agpotter@gmail.com>2014-03-13 20:59:48 -0700
committerAndrew Potter <agpotter@gmail.com>2014-03-13 21:05:47 -0700
commit1baa2e288c0970d4164e4ff6baaf99e195644a6d (patch)
tree7db3afb03c73a653577b5e8c05c40f2b883ff801 /src/plugins/xfer
parent92d454eb8d27fbc24b9cedcf5cbf9d540d414982 (diff)
downloadweechat-1baa2e288c0970d4164e4ff6baaf99e195644a6d.zip
xfer: Fix segfault in DCC send.
This was broken before the previous change, since remote_address was just a zero'd out struct.
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r--src/plugins/xfer/xfer-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/xfer/xfer-network.c b/src/plugins/xfer/xfer-network.c
index fb9b18ac8..d0ff2dd62 100644
--- a/src/plugins/xfer/xfer-network.c
+++ b/src/plugins/xfer/xfer-network.c
@@ -548,7 +548,7 @@ xfer_network_connect (struct t_xfer *xfer)
/* create socket */
if (xfer->sock < 0)
{
- xfer->sock = socket (xfer->remote_address->sa_family, SOCK_STREAM,
+ xfer->sock = socket (xfer->local_address->sa_family, SOCK_STREAM,
0);
if (xfer->sock < 0)
return 0;