vici: Use correct constant when checking for integrity algorithm
authorTobias Brunner <tobias@strongswan.org>
Fri, 18 Dec 2015 12:46:24 +0000 (13:46 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 21 Dec 2015 11:14:12 +0000 (12:14 +0100)
Currently both have the value 1024 so no real harm done.

src/libcharon/plugins/vici/vici_query.c

index 1b56a9f..e020ebf 100644 (file)
@@ -126,7 +126,7 @@ static void list_child(private_vici_query_t *this, vici_builder_t *b,
                                }
                        }
                        if (proposal->get_algorithm(proposal, INTEGRITY_ALGORITHM,
                                }
                        }
                        if (proposal->get_algorithm(proposal, INTEGRITY_ALGORITHM,
-                                                                               &alg, &ks) && alg != ENCR_UNDEFINED)
+                                                                               &alg, &ks) && alg != AUTH_UNDEFINED)
                        {
                                b->add_kv(b, "integ-alg", "%N", integrity_algorithm_names, alg);
                                if (ks)
                        {
                                b->add_kv(b, "integ-alg", "%N", integrity_algorithm_names, alg);
                                if (ks)