From: Ronnie Sahlberg Date: Sat, 24 Nov 2012 17:01:00 +0000 (-0800) Subject: ZDR_ARRAYS: The sub-unmarshaller returns TRUE FALSE if there was an error, not TRUE X-Git-Tag: upstream/1.9.6^2~242^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5f08d03e16b551dfc828fadd74959005b72dc097;p=deb_libnfs.git ZDR_ARRAYS: The sub-unmarshaller returns TRUE FALSE if there was an error, not TRUE --- diff --git a/lib/libnfs-zdr.c b/lib/libnfs-zdr.c index 0ef4fc0..cdb35b9 100644 --- a/lib/libnfs-zdr.c +++ b/lib/libnfs-zdr.c @@ -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; } }