diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-01-17 09:22:56 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-01-23 20:15:20 +0100 |
commit | 98a7e2b4e09791705cd9dfd4d13611bc02fe47d4 (patch) | |
tree | 71b2de60c2871bec73915dfb1e1036c172fbee78 /drivers/unix/socket_helpers.h | |
parent | e4b9b37ccf8495be674bc15cf0bf9d76fe94e6be (diff) |
Convert validity checks of IP_Address to is_valid method.
Diffstat (limited to 'drivers/unix/socket_helpers.h')
-rw-r--r-- | drivers/unix/socket_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/socket_helpers.h b/drivers/unix/socket_helpers.h index 6d4f7e7519..7dc34811db 100644 --- a/drivers/unix/socket_helpers.h +++ b/drivers/unix/socket_helpers.h @@ -16,7 +16,7 @@ static size_t _set_sockaddr(struct sockaddr_storage* p_addr, const IP_Address& p memset(p_addr, 0, sizeof(struct sockaddr_storage)); - ERR_FAIL_COND_V(p_ip==IP_Address(),0); + ERR_FAIL_COND_V(!p_ip.is_valid(),0); // IPv6 socket if (p_sock_type == IP::TYPE_IPV6 || p_sock_type == IP::TYPE_ANY) { |