From ee6eea95affe2ee7711bea56fad1c863a16903ad Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Aug 2017 12:24:11 +0200 Subject: [PATCH] net/StaticSocketAddress: set a valid size in Clear() --- src/net/StaticSocketAddress.hxx | 1 + 1 file changed, 1 insertion(+) 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; }