diff options
author | Werner Koch <[email protected]> | 2009-06-24 14:03:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-06-24 14:03:09 +0000 |
commit | 2e0ce7d97f0de998cdf8e95e17ce169b7cae91cd (patch) | |
tree | c4042057b382f755d3bc1799e9c78d3355436fa2 /common/sexputil.c | |
parent | Post release updates (diff) | |
download | gnupg-2e0ce7d97f0de998cdf8e95e17ce169b7cae91cd.tar.gz gnupg-2e0ce7d97f0de998cdf8e95e17ce169b7cae91cd.zip |
Fixed a bunch of little bugs as reported by Fabian Keil.
Still one problem left; marked with a gcc #warning.
Diffstat (limited to 'common/sexputil.c')
-rw-r--r-- | common/sexputil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/sexputil.c b/common/sexputil.c index 7c6cb6af5..73608816d 100644 --- a/common/sexputil.c +++ b/common/sexputil.c @@ -377,6 +377,9 @@ get_rsa_pk_from_canon_sexp (const unsigned char *keydata, size_t keydatalen, return err; } + if (err) + return err; + if (!rsa_n || !rsa_n_len || !rsa_e || !rsa_e_len) return gpg_error (GPG_ERR_BAD_PUBKEY); |