Author: kclark
Date: Fri Nov 14 09:09:52 2008
New Revision: 714069
URL: http://svn.apache.org/viewvc?rev=714069&view=rev
Log:
rb: Validate struct _after_ read. [THRIFT-206]
Modified:
incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb
Modified: incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb?rev=714069&r1=714068&r2=714069&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb Fri Nov 14 09:09:52 2008
@@ -82,7 +82,6 @@
end
def read(iprot)
- validate
# TODO(kevinclark): Make sure transport is C readable
if iprot.respond_to?(:decode_binary)
iprot.decode_binary(self, iprot.trans)
@@ -96,6 +95,7 @@
end
iprot.read_struct_end
end
+ validate
end
def write(oprot)