X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/71fe13a241da37f6d1eb3e43ba9ef25e2f1bae99..db6e2fe0f76597d7257abd0c8efa2739b8cf3b94:/rpc.subproj/pmap_prot2.c?ds=sidebyside diff --git a/rpc.subproj/pmap_prot2.c b/rpc.subproj/pmap_prot2.c index 6c286c7..99be504 100644 --- a/rpc.subproj/pmap_prot2.c +++ b/rpc.subproj/pmap_prot2.c @@ -121,7 +121,7 @@ xdr_pmaplist(xdrs, rp) register struct pmaplist **next = NULL; while (TRUE) { - more_elements = (bool_t)(*rp != NULL); + more_elements = (bool_t)(!(rp == NULL || *rp == NULL)); if (! xdr_bool(xdrs, &more_elements)) return (FALSE); if (! more_elements) @@ -132,7 +132,7 @@ xdr_pmaplist(xdrs, rp) * before we free the current object ... */ if (freeing) - next = &((*rp)->pml_next); + next = &((*rp)->pml_next); if (! xdr_reference(xdrs, (caddr_t *)rp, (u_int)sizeof(struct pmaplist), (xdrproc_t)xdr_pmap)) return (FALSE); rp = (freeing) ? next : &((*rp)->pml_next);