api: fix crash in function network_connect_to() if address is NULL (issue #781)
This commit is contained in:
parent
2f0d39f98d
commit
d6767b4ed6
@ -36,6 +36,7 @@ Improvements::
|
|||||||
Bug fixes::
|
Bug fixes::
|
||||||
|
|
||||||
* core, irc, xfer: refresh domain name and name server addresses before connection to servers (issue #771)
|
* core, irc, xfer: refresh domain name and name server addresses before connection to servers (issue #771)
|
||||||
|
* api: fix crash in function network_connect_to() if address is NULL
|
||||||
* api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux (issue #770)
|
* api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux (issue #770)
|
||||||
* api: fix crash in function string_split_command() when the separator is not a semicolon (issue #731)
|
* api: fix crash in function string_split_command() when the separator is not a semicolon (issue #731)
|
||||||
* irc: fix NULL pointer dereference in 734 command callback (issue #738)
|
* irc: fix NULL pointer dereference in 734 command callback (issue #738)
|
||||||
|
@ -674,6 +674,9 @@ network_connect_to (const char *proxy, struct sockaddr *address,
|
|||||||
sock = -1;
|
sock = -1;
|
||||||
proxy_addrinfo = NULL;
|
proxy_addrinfo = NULL;
|
||||||
|
|
||||||
|
if (!address || (address_length == 0))
|
||||||
|
return -1;
|
||||||
|
|
||||||
ptr_proxy = NULL;
|
ptr_proxy = NULL;
|
||||||
if (proxy && proxy[0])
|
if (proxy && proxy[0])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user