gpg: Fix possible segv when attribute packets are filtered.
authorWerner Koch <wk@gnupg.org>
Fri, 3 Mar 2017 08:50:40 +0000 (09:50 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 3 Mar 2017 08:50:40 +0000 (09:50 +0100)
commit5f6f3f5cae8a95ed469129f9677782c17951dab3
tree84e0a8e097016b53e76c9c30d3679dbba723947a
parent1813f3be23bdab5a42070424c47cb8daa9d9e6b7
gpg: Fix possible segv when attribute packets are filtered.

* g10/import.c (impex_filter_getval): Handle PKT_ATTRIBUTE the same as
PKT_USER_ID
(apply_drop_sig_filter): Ditto.
--

The old code was plainly wrong in that it considered PKT_ATTRIBUTE to
use a PKT_signature object.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/import.c