mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
gpg: Do not try the import fallback if the options are already used.
* g10/import.c (import_one): Check options. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
b6effaf466
commit
3c2cf5ea95
@ -2301,7 +2301,9 @@ import_one (ctrl_t ctrl,
|
|||||||
from_sk, silent, screener, screener_arg,
|
from_sk, silent, screener, screener_arg,
|
||||||
origin, url, r_valid);
|
origin, url, r_valid);
|
||||||
if (gpg_err_code (err) == GPG_ERR_TOO_LARGE
|
if (gpg_err_code (err) == GPG_ERR_TOO_LARGE
|
||||||
&& gpg_err_source (err) == GPG_ERR_SOURCE_KEYBOX)
|
&& gpg_err_source (err) == GPG_ERR_SOURCE_KEYBOX
|
||||||
|
&& ((options & (IMPORT_SELF_SIGS_ONLY | IMPORT_CLEAN))
|
||||||
|
!= (IMPORT_SELF_SIGS_ONLY | IMPORT_CLEAN)))
|
||||||
{
|
{
|
||||||
/* We hit the maximum image length. Ask the wrapper to do
|
/* We hit the maximum image length. Ask the wrapper to do
|
||||||
* everything again but this time with some extra options. */
|
* everything again but this time with some extra options. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user