From b595d74c6bba5cff01c01332fdc4bd39ae536312 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 24 Jun 2016 15:05:34 -0700 Subject: [PATCH] HADOOP-11823: dont check for verifier in RpcDeniedReply --- .../src/main/java/org/apache/hadoop/oncrpc/RpcDeniedReply.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/RpcDeniedReply.java b/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/RpcDeniedReply.java index 2c4a0946c0e..3d9cb3d0347 100644 --- a/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/RpcDeniedReply.java +++ b/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/RpcDeniedReply.java @@ -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); }