]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/cache.c
mountd: Fix memcmp result comparison error for uuid match.
[nfs-utils.git] / utils / mountd / cache.c
index 9e1b16402009daeae9e828ebf47f3bb268701e56..bf18a9aba169d53ee05279957a7cfa9b4a64540d 100644 (file)
@@ -513,7 +513,7 @@ void nfsd_fh(FILE *f)
                                        for (type = 0;
                                             uuid_by_path(path, type, uuidlen, u);
                                             type++)
-                                               if (memcmp(u, fhuuid, uuidlen) != 0)
+                                               if (memcmp(u, fhuuid, uuidlen) == 0)
                                                        break;
 
                                if (memcmp(u, fhuuid, uuidlen) != 0)