DragonFlyBSD Kernel Audit
DF-0807 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/vfs/dirfs/dirfs_vnops.c b/sys/vfs/dirfs/dirfs_vnops.c
--- a/sys/vfs/dirfs/dirfs_vnops.c
+++ b/sys/vfs/dirfs/dirfs_vnops.c
@@ -1281,7 +1281,6 @@
 		if (error || r)
 			break;
 		dpn = _DIRENT_NEXT(dp);
-		dp = dpn;
 		cnt++;
 	}
 	curoff = lseek(dnp->dn_fd, 0, SEEK_CUR);