]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 1b56a9f73cca25e5c9d15411052e52045949cd0e..e020ebf8c80294fcb5b1d0cde90764957a5c7cdf 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,
-                                                                               &alg, &ks) && alg != ENCR_UNDEFINED)
+                                                                               &alg, &ks) && alg != AUTH_UNDEFINED)
                        {
                                b->add_kv(b, "integ-alg", "%N", integrity_algorithm_names, alg);
                                if (ks)