xdr_rejected_reply: Don't crash with invalid server rejection
Subsystems (2)
PATCH 1/1 xdr_rejected_reply: Don't crash with invalid server rejection
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 <[email protected]>
--- src/rpc_prot.c | 1 - 1 file changed, 1 deletion(-)
src/rpc_prot.c +0 -1
@@ -150,7 +150,6 @@ xdr_rejected_reply(xdrs, rr)return (xdr_enum (xdrs, (enum_t *)&(rr->rj_why))); }/* NOTREACHED */ -assert (0 );return (FALSE); }
Signature · 1 line
1.9.0
Quoted 5 lines · Steve Dickson
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 <[email protected]>
Committed....
steved.
Quoted 17 lines
--- src/rpc_prot.c | 1 - 1 file changed, 1 deletion(-)src/rpc_prot.c +0
-1@@ -150,7 +150,6 @@ xdr_rejected_reply(xdrs, rr)return (xdr_enum (xdrs, (enum_t *)&(rr->rj_why))); }/* NOTREACHED */ -assert (0 );return (FALSE); }