HADOOP-11823: dont check for verifier in RpcDeniedReply

This commit is contained in:
Pradeep Nayak 2016-06-24 15:05:34 -07:00
parent 42d53e806e
commit b595d74c6b
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
package org.apache.hadoop.oncrpc;
import org.apache.hadoop.oncrpc.security.Verifier;
import org.apache.hadoop.oncrpc.security.VerifierNone;
/**
* Represents RPC message MSG_DENIED reply body. See RFC 1831 for details.
@ -47,7 +48,7 @@ public class RpcDeniedReply extends RpcReply {
}
public static RpcDeniedReply read(int xid, ReplyState replyState, XDR xdr) {
Verifier verifier = Verifier.readFlavorAndVerifier(xdr);
Verifier verifier = new VerifierNone();
RejectState rejectState = RejectState.fromValue(xdr.readInt());
return new RpcDeniedReply(xid, replyState, rejectState, verifier);
}