set moved-from ip to explicitly obvious moved-from string

This commit is contained in:
Lion Kortlepel
2026-04-08 18:07:10 +02:00
parent a59f7296d0
commit a46f2d3204
+2
View File
@@ -45,6 +45,8 @@ TConnectionLimiter::TGuard& TConnectionLimiter::TGuard::operator=(TGuard&& other
mOwner = other.mOwner;
mIp = std::move(other.mIp);
other.mOwner = nullptr;
// setting this so its obvious when this happens, instead of being UB or empty string
other.mIp = "<moved-from>";
}
return *this;
}