]> git.saurik.com Git - apple/libinfo.git/blobdiff - rpc.subproj/pmap_prot2.c
Libinfo-503.tar.gz
[apple/libinfo.git] / rpc.subproj / pmap_prot2.c
index 6c286c7d6652f4ce8a229f90b668e0d16aa834f7..99be5047ec8a9905fab8f95efe5289eb5cad175d 100644 (file)
@@ -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);