diff options
Diffstat (limited to 'pgp-encode.c')
-rw-r--r-- | pgp-encode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pgp-encode.c b/pgp-encode.c index 5cb9529a..0ac46d21 100644 --- a/pgp-encode.c +++ b/pgp-encode.c @@ -294,9 +294,8 @@ pgp_put_rsa_sha1_signature(struct nettle_buffer *buffer, } mpz_init(s); - rsa_sha1_sign(key, hash, s); - - if (!pgp_put_mpi(buffer, s)) + if (!(rsa_sha1_sign(key, hash, s) + && pgp_put_mpi(buffer, s))) { mpz_clear(s); return 0; |