digest_matches: actually use fd2 in place of fd as needed.

This commit is contained in:
Todd C. Miller
2023-09-26 11:51:10 -06:00
parent ff2d8464cf
commit 837f400ac8

View File

@@ -63,6 +63,7 @@ digest_matches(int fd, const char *path,
/* No file, no match. */
goto done;
}
fd = fd2;
}
TAILQ_FOREACH(digest, digests, entries) {