mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
DCC SEND fixed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@209 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
58aaae794e
commit
ee254bd146
@ -510,7 +510,7 @@ static void cmd_dcc_send(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item)
|
||||
lseek(fh, 0, SEEK_SET);
|
||||
|
||||
/* get the IP address we use with IRC server */
|
||||
if (!net_getsockname(chat != NULL ? chat->handle : server->handle, &addr, NULL))
|
||||
if (net_getsockname(chat != NULL ? chat->handle : server->handle, &addr, NULL) == -1)
|
||||
{
|
||||
close(fh);
|
||||
cmd_param_error(CMDERR_GETSOCKNAME);
|
||||
|
Loading…
Reference in New Issue
Block a user