gpg: Avoid malloc failure due to no key signatures
authorWerner Koch <wk@gnupg.org>
Mon, 19 Sep 2016 06:27:23 +0000 (08:27 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 19 Sep 2016 06:27:56 +0000 (08:27 +0200)
commit18bbefa27f9e47e1062ee4d7af09487632795ba7
tree7e2b3985988bb9e02bd90e54b0ec803f02e0fbab
parent55675fa5a03969a896c8a7b19af22a2fd91d9747
gpg: Avoid malloc failure due to no key signatures

* g10/keyedit.c (check_all_keysigs): Check early for no key
signatures.  Use xtrycalloc.
--

GnuPG-bug-id: 2690
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keyedit.c