aboutsummaryrefslogtreecommitdiffstats
path: root/g10/pkclist.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r--g10/pkclist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c
index 57c36cee2..73e8f3889 100644
--- a/g10/pkclist.c
+++ b/g10/pkclist.c
@@ -756,9 +756,9 @@ select_algo_from_prefs( PK_LIST pk_list, int preftype )
if( pref ) {
for(j=0; j+1 < npref; j+=2 ) {
if( pref[j] == preftype ) {
- any = 1;
if( (bits[pref[j+1]/32] & (1<<(pref[j+1]%32))) ) {
if( algo_available( preftype, pref[j+1] ) ) {
+ any = 1;
i = pref[j+1];
break;
}