diff --git a/src/main/java/jcifs/smb/DfsImpl.java b/src/main/java/jcifs/smb/DfsImpl.java
index <HASH>..<HASH> 100644
--- a/src/main/java/jcifs/smb/DfsImpl.java
+++ b/src/main/java/jcifs/smb/DfsImpl.java
@@ -452,7 +452,7 @@ public class DfsImpl implements DfsResolver {
                         DfsReferralDataInternal r = start;
                         do {
                             log.trace("    " + entry3.getKey() + " => " + entry3.getValue());
-                            r = start.next();
+                            r = r.next();
                         }
                         while ( r != start );
                     }
Fix endless loop dumping DFS referral cache (#<I>)