Skip to content

Commit c138a42

Browse files
committed
Post fix for #8256.
port should be NULLified after forced disconnect.
1 parent 2e35e04 commit c138a42

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
@@ -7162,9 +7162,6 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
71627162
*
71637163
**************************************/
71647164

7165-
rem_port* port = NULL;
7166-
int inet_af = AF_UNSPEC;
7167-
71687165
cBlock.loadClnt(pb, &parSet);
71697166
pb.deleteWithTag(parSet.auth_block);
71707167

@@ -7176,8 +7173,12 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
71767173
Auth::setLegacySSP(legacySSP);
71777174
#endif
71787175

7176+
rem_port* port;
71797177
while (true)
71807178
{
7179+
port = NULL;
7180+
int inet_af = AF_UNSPEC;
7181+
71817182
authenticateStep0(cBlock);
71827183
const NoCaseString savePluginName(cBlock.plugins.name());
71837184

0 commit comments

Comments
 (0)