diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 50f6eb5a0..b3702ec4d 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -88,6 +88,7 @@ public: } void Clear() noexcept { + size = sizeof(address.ss_family); address.ss_family = AF_UNSPEC; }