Permalink
Browse files

store hash_head unpacked

  • Loading branch information...
1 parent cc5c9d6 commit 54b92258cf7f2c42c3954b22552a5b070658a4c4 @singpolyma committed Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/openpgp/packet.rb
View
@@ -265,7 +265,7 @@ def read_v4_signature(body)
unhashed_count = body.read_number(2)
unhashed_data = body.read_bytes(unhashed_count)
@unhashed_subpackets = read_subpackets(Buffer.new(unhashed_data))
- @hash_head = body.read_bytes(2)
+ @hash_head = body.read_bytes(2).unpack('n').first
read_signature(body)
self
end

0 comments on commit 54b9225

Please sign in to comment.