From ff951bd5675a1ba72b39abeff8aafb770d3c43cf Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Fri, 22 Mar 2013 22:12:19 +0100 Subject: [PATCH] THRIFT-1863 cocoa: [TBinaryProtocol readMessageBeginReturnName:type:sequenceID] returns incorrect message type Patch: Kevin Li --- lib/cocoa/src/protocol/TBinaryProtocol.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoa/src/protocol/TBinaryProtocol.m b/lib/cocoa/src/protocol/TBinaryProtocol.m index f269aaa0..bee616e0 100644 --- a/lib/cocoa/src/protocol/TBinaryProtocol.m +++ b/lib/cocoa/src/protocol/TBinaryProtocol.m @@ -118,7 +118,7 @@ static TBinaryProtocolFactory * gSharedFactory = nil; reason: @"Bad version in readMessageBegin"]; } if (type != NULL) { - *type = version & 0x00FF; + *type = size & 0x00FF; } NSString * messageName = [self readString]; if (name != NULL) { -- 2.17.1