Permalink
Browse files

* Partial Body Lengths packet support for scanner, too.

  • Loading branch information...
1 parent 9443be1 commit e3eaf7e822c2bb13576c06b0b55d6a2500f3cf71 @nahi committed Nov 6, 2004
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/pgp/packet/sigsubpacket/packet.rb
@@ -121,7 +121,10 @@ def self.load(port)
end
def self.scan(port, io)
- length = load_length_new(port)
+ length, partial = load_length_new(port)
+ if partial
+ raise "Partial Body Lengths not allowed"
+ end
type = load_type(port)
critical = (type & T_CRITICAL).nonzero?
type &= ~T_CRITICAL

0 comments on commit e3eaf7e

Please sign in to comment.