From c78b5e6947c921223c9cb433d40dea9056e7e9b1 Mon Sep 17 00:00:00 2001 From: Vlad Khorsun Date: Thu, 17 Oct 2024 10:54:16 +0300 Subject: [PATCH] Post fix for #8256. port should be NULLified after forced disconnect. --- src/remote/client/interface.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/remote/client/interface.cpp b/src/remote/client/interface.cpp index 17dad93f5e..471ca9f600 100644 --- a/src/remote/client/interface.cpp +++ b/src/remote/client/interface.cpp @@ -7400,9 +7400,6 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned * **************************************/ - rem_port* port = NULL; - int inet_af = AF_UNSPEC; - cBlock.loadClnt(pb, &parSet); pb.deleteWithTag(parSet.auth_block); @@ -7414,8 +7411,12 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned Auth::setLegacySSP(legacySSP); #endif + rem_port* port; while (true) { + port = NULL; + int inet_af = AF_UNSPEC; + authenticateStep0(cBlock); const NoCaseString savePluginName(cBlock.plugins.name());