Skip to content

Commit 46cc4c7

Browse files
committed
Post fix for #8256.
port should be NULLified after forced disconnect.
1 parent 40552d0 commit 46cc4c7

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
@@ -7399,9 +7399,6 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
73997399
*
74007400
**************************************/
74017401

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

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

7413+
rem_port* port;
74167414
while (true)
74177415
{
7416+
port = NULL;
7417+
int inet_af = AF_UNSPEC;
7418+
74187419
authenticateStep0(cBlock);
74197420
const NoCaseString savePluginName(cBlock.plugins.name());
74207421

0 commit comments

Comments
 (0)