use "=" instead of "|=", fix typo
authorNils Larsch <nils@openssl.org>
Wed, 8 Jun 2005 22:24:27 +0000 (22:24 +0000)
committerNils Larsch <nils@openssl.org>
Wed, 8 Jun 2005 22:24:27 +0000 (22:24 +0000)
ssl/ssl_ciph.c

index 40644ba88049fc516d46edd3816a6c64eddde64b..2b8a37397c1b9743dbbb00b1e63bcfdeeb97fa89 100644 (file)
@@ -700,11 +700,11 @@ static int ssl_cipher_process_rulestr(const char *rule_str,
                        if (!found)
                                break;  /* ignore this entry */
 
-                       algorithms |= (ca_list[j]->algorithms & ~mask) |
-                                     (ca_list[j]->algorithms & algorithms & mask);
+                       algorithms = (ca_list[j]->algorithms & ~mask) |
+                                    (ca_list[j]->algorithms &  algorithms & mask);
                        mask |= ca_list[j]->mask;
-                       algo_strength |= (ca_list[j]->algo_strength & ~mask_strength) |
-                                        (ca_list[j]->algo_strength & algorithms & mask_strength);
+                       algo_strength = (ca_list[j]->algo_strength & ~mask_strength) |
+                                       (ca_list[j]->algo_strength & algo_strength & mask_strength);
                        mask_strength |= ca_list[j]->mask_strength;
 
                        if (!multi) break;