diff --git a/base/networking.c b/base/networking.c index 5fb5cf7ca..08a11874e 100644 --- a/base/networking.c +++ b/base/networking.c @@ -786,6 +786,8 @@ ip_islocalhost (struct sockaddr_storage *storage) addr6_p = &addr6; addr_p = &addr; + addr.s_addr = 0; + if (family == AF_INET) { sin_p = (struct sockaddr_in *) storage; diff --git a/boreas/util.c b/boreas/util.c index 33a0852fc..0cd4deaa4 100644 --- a/boreas/util.c +++ b/boreas/util.c @@ -416,7 +416,7 @@ static boreas_error_t set_socket (socket_type_t socket_type, int *scanner_socket) { boreas_error_t error = NO_ERROR; - int soc; + int soc = -1; switch (socket_type) { case UDPV4: