]> the.earth.li Git - onak.git/commit
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)
commit4b48bfe2bb8471be547a0503aa516a5248277bac
treec2ff8c29f7a75f8c2dc3a416b74695da9c47277a
parentf0a63a7442a69bd08130efcb03d5e4b18110b859
Prevent read_openpgp_stream from returning empty packets

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
parsekey.c
splitkeys.c