aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/sign.c')
-rw-r--r--g10/sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c
index 8d575a100..b437190af 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -1095,7 +1095,7 @@ sign_file (ctrl_t ctrl, strlist_t filenames, int detached, strlist_t locusr,
single hash for all signatures. All this may well have
to change as the cards add algorithms. */
- if (!smartcard || (smartcard && hint.digest_length==20)
+ if ((!smartcard || (smartcard && hint.digest_length==20))
&& (algo = select_algo_from_prefs(pk_list,PREFTYPE_HASH,
-1,&hint)) > 0)
{