gpg: Consider that gcry_mpi_get_opaque may return NULL.
authorWerner Koch <wk@gnupg.org>
Tue, 2 Jun 2015 15:41:30 +0000 (17:41 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 2 Jun 2015 15:41:30 +0000 (17:41 +0200)
commit8a2134b8d50bd6a98a0a20fac9c2ac645e554e05
tree5c903f5a642810cf7cf1c8011cf622fb636ae81a
parentb2d9d105f717dc6c02ac81b5d987851279c4cd97
gpg: Consider that gcry_mpi_get_opaque may return NULL.

* g10/seckey-cert.c (do_check): Handle a NULL opaque MPI.
--

This patch extends b2d9d10 for secret keys.  The problem is that we
changed the semantics so that opaque MPIs may be NULL with a bit
length.  This patch is not required in GnuPG 2 because we do not use
secret keys there.

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