From a46f2d3204f57f44ef352d210a54e55fb9904e90 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 8 Apr 2026 18:07:10 +0200 Subject: [PATCH] set moved-from ip to explicitly obvious moved-from string --- src/TConnectionLimiter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TConnectionLimiter.cpp b/src/TConnectionLimiter.cpp index 4f3c179..86e686b 100644 --- a/src/TConnectionLimiter.cpp +++ b/src/TConnectionLimiter.cpp @@ -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 = ""; } return *this; }