ZDR_ARRAYS: The sub-unmarshaller returns TRUE FALSE if there was an error, not TRUE
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 24 Nov 2012 17:01:00 +0000 (09:01 -0800)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 24 Nov 2012 17:01:00 +0000 (09:01 -0800)
lib/libnfs-zdr.c

index 0ef4fc02ce00b712535a2d5d266ce374f0d73dc6..cdb35b970628642b74b95016c1a5da77360e5aa9 100644 (file)
@@ -281,7 +281,7 @@ bool_t libnfs_zdr_array(ZDR *zdrs, char **arrp, uint32_t *size, uint32_t maxsize
        }
 
        for (i = 0; i < *size; i++) {
-               if (proc(zdrs, *arrp + i * elsize)) {
+               if (!proc(zdrs, *arrp + i * elsize)) {
                        return FALSE;
                }
        }