gpg: Return an error code from keygrip_from_pk.

* g10/keyid.c (keygrip_from_pk): Return an error code.
--

The error was show but the function did not return it.  This change
should improve error messages for unknown algorithms.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-01-07 19:07:59 +01:00
parent 8a56a38387
commit 8fd406c317
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -883,7 +883,7 @@ keygrip_from_pk (PKT_public_key *pk, unsigned char *array)
}
gcry_sexp_release (s_pkey);
return 0;
return err;
}