net/StaticSocketAddress: set a valid size in Clear()

This commit is contained in:
Max Kellermann 2017-08-10 12:24:11 +02:00
parent a257504ba4
commit ee6eea95af

View File

@ -88,6 +88,7 @@ public:
}
void Clear() noexcept {
size = sizeof(address.ss_family);
address.ss_family = AF_UNSPEC;
}