]> granicus.if.org Git - libtirpc/commitdiff
xdr_rejected_reply: Don't crash with invalid server rejection
authorSteve Dickson <steved@redhat.com>
Thu, 5 Jun 2014 13:40:23 +0000 (09:40 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 18 Jun 2014 20:39:18 +0000 (16:39 -0400)
It seems legacy servers like to return invalid
rejection status when a RPC is rejected. This
should not crash the app then it happens.

Signed-off-by: Steve Dickson <steved@redhat.com>
src/rpc_prot.c

index e562deb7e505eaafe103638a2e82a068b8faad42..5841e5192febeb8bc152356a8a2f2f56e969f307 100644 (file)
@@ -150,7 +150,6 @@ xdr_rejected_reply(xdrs, rr)
                return (xdr_enum(xdrs, (enum_t *)&(rr->rj_why)));
        }
        /* NOTREACHED */
-       assert(0);
        return (FALSE);
 }