Commit ee6eea95 authored by Max Kellermann's avatar Max Kellermann

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

parent a257504b
......@@ -88,6 +88,7 @@ public:
}
void Clear() noexcept {
size = sizeof(address.ss_family);
address.ss_family = AF_UNSPEC;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment