mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
api: fix crash in function network_connect_to() if address is NULL (issue #781)
This commit is contained in:
@@ -674,6 +674,9 @@ network_connect_to (const char *proxy, struct sockaddr *address,
|
||||
sock = -1;
|
||||
proxy_addrinfo = NULL;
|
||||
|
||||
if (!address || (address_length == 0))
|
||||
return -1;
|
||||
|
||||
ptr_proxy = NULL;
|
||||
if (proxy && proxy[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user