]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
Prevent read_openpgp_stream from returning empty packets
authorJonathan McDowell <noodles@earth.li>
Sun, 29 Sep 2013 21:12:21 +0000 (22:12 +0100)
committerJonathan McDowell <noodles@earth.li>
Sun, 29 Sep 2013 21:12:21 +0000 (22:12 +0100)
If read_openpgp_stream got an invalid packet that had a semi valid
header it could potentially return an empty package, which would
confuse splitkeys. Cleanup the final package returned if it turns
out we didn't have valid data for it.

Fixes Debian bug #716350


No differences found