]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
starter: Use correct type for uniqueids field
authorEtay Bogner <etay@bgnr.net>
Wed, 6 Mar 2024 22:40:51 +0000 (00:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 7 Mar 2024 14:08:00 +0000 (15:08 +0100)
Enum arguments (ARG_ENUM with .list != LST_bool) are assumed to be of
type/size int in assign_args() in args.c.

Fixes: 0644ebd3de62 ("implemented IKE_SA uniqueness using ipsec.conf uniqueids paramater additionally supports a "keep" value to keep the old IKE_SA")
Closes strongswan/strongswan#2148

src/starter/confread.h

index 0c22481f0a7769be52dc3777e2151d934edcb6a5..971b350c80ebed5506f32e38c4bffa02fb43955e 100644 (file)
@@ -197,7 +197,7 @@ typedef struct starter_config starter_config_t;
 struct starter_config {
                struct {
                                char     *charondebug;
-                               bool     uniqueids;
+                               int      uniqueids;
                                bool     cachecrls;
                                strict_t strictcrlpolicy;
                } setup;