Skip to content

Commit

Permalink
Use correct share when retrying guest/anonymous auth (AgNO3#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbechler authored and romanblachman committed Dec 3, 2019
1 parent e9d763f commit a15b495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jcifs/smb/SmbTreeConnection.java
Expand Up @@ -603,7 +603,7 @@ private SmbTreeImpl connectTree ( SmbResourceLocatorImpl loc, String addr, Strin
try ( SmbSessionInternal s = trans
.getSmbSession(this.ctx.withAnonymousCredentials(), t.getSession().getTargetHost(), t.getSession().getTargetDomain())
.unwrap(SmbSessionInternal.class);
SmbTreeImpl tr = s.getSmbTree(null, null).unwrap(SmbTreeImpl.class) ) {
SmbTreeImpl tr = s.getSmbTree(share, null).unwrap(SmbTreeImpl.class) ) {
tr.treeConnect(null, null);
return tr.acquire();
}
Expand Down

0 comments on commit a15b495

Please sign in to comment.