Skip to content

Commit c78b5e6

Browse files
committed
Post fix for #8256.
port should be NULLified after forced disconnect.
1 parent dc5fb8f commit c78b5e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/remote/client/interface.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7400,9 +7400,6 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
74007400
*
74017401
**************************************/
74027402

7403-
rem_port* port = NULL;
7404-
int inet_af = AF_UNSPEC;
7405-
74067403
cBlock.loadClnt(pb, &parSet);
74077404
pb.deleteWithTag(parSet.auth_block);
74087405

@@ -7414,8 +7411,12 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
74147411
Auth::setLegacySSP(legacySSP);
74157412
#endif
74167413

7414+
rem_port* port;
74177415
while (true)
74187416
{
7417+
port = NULL;
7418+
int inet_af = AF_UNSPEC;
7419+
74197420
authenticateStep0(cBlock);
74207421
const NoCaseString savePluginName(cBlock.plugins.name());
74217422

0 commit comments

Comments
 (0)