diff options
-rw-r--r-- | plugin/handler_socket/CMakeLists.txt | 2 | ||||
-rw-r--r-- | plugin/handler_socket/libhsclient/auto_addrinfo.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/handler_socket/CMakeLists.txt b/plugin/handler_socket/CMakeLists.txt index db232ced7ae..358139eda1e 100644 --- a/plugin/handler_socket/CMakeLists.txt +++ b/plugin/handler_socket/CMakeLists.txt @@ -1,5 +1,5 @@ -IF(WIN32 OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") +IF(WIN32) # Handlersocket does not compile on Windows, compiles but does # not start on FreeBSD. RETURN() diff --git a/plugin/handler_socket/libhsclient/auto_addrinfo.hpp b/plugin/handler_socket/libhsclient/auto_addrinfo.hpp index f0c07060be1..6a807a6fcc7 100644 --- a/plugin/handler_socket/libhsclient/auto_addrinfo.hpp +++ b/plugin/handler_socket/libhsclient/auto_addrinfo.hpp @@ -35,7 +35,7 @@ struct auto_addrinfo : private noncopyable { int resolve(const char *node, const char *service, int flags = 0, int family = AF_UNSPEC, int socktype = SOCK_STREAM, int protocol = 0) { reset(); - addrinfo hints; + addrinfo hints = { }; hints.ai_flags = flags; hints.ai_family = family; hints.ai_socktype = socktype; |