diff --git a/lib/thrift/sasl_client_transport.rb b/lib/thrift/sasl_client_transport.rb index 7361a3a..9c254e3 100644 --- a/lib/thrift/sasl_client_transport.rb +++ b/lib/thrift/sasl_client_transport.rb @@ -70,7 +70,7 @@ def initiate_hand_shake when NEGOTIATION_STATUS[:BAD], NEGOTIATION_STATUS[:ERROR] raise @transport.to_io.read(len) when NEGOTIATION_STATUS[:COMPLETE] - @challenge = @transport.to_io.read len + @challenge = "" when NEGOTIATION_STATUS[:OK] raise "Failed to complete challenge exchange: only NONE supported currently" end