net/StaticSocketAddress: set a valid size in Clear()
This commit is contained in:
parent
a257504ba4
commit
ee6eea95af
@ -88,6 +88,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Clear() noexcept {
|
void Clear() noexcept {
|
||||||
|
size = sizeof(address.ss_family);
|
||||||
address.ss_family = AF_UNSPEC;
|
address.ss_family = AF_UNSPEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user