mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
xfer: Fix segfault in DCC send.
This was broken before the previous change, since remote_address was just a zero'd out struct.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user