]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Increase maximum proposal length
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 6 Jul 2021 10:11:51 +0000 (12:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 22 Mar 2023 10:35:11 +0000 (11:35 +0100)
src/libcharon/plugins/vici/vici_config.c

index 43c81a6c1485af18899691e7333af8b2b7a89e2b..6f2c927c4301c5a8accc31ae61f1733c2c9ae891 100644 (file)
 
 #include <stdio.h>
 
+/**
+ *  Maximum proposal length
+ */
+#define MAX_PROPOSAL_LEN   2048
+
 /**
  * Magic value for an undefined lifetime
  */
@@ -597,7 +602,7 @@ static void free_child_data(child_data_t *data)
  */
 static bool parse_proposal(linked_list_t *list, protocol_id_t proto, chunk_t v)
 {
-       char buf[BUF_LEN];
+       char buf[MAX_PROPOSAL_LEN];
        proposal_t *proposal;
 
        if (!vici_stringify(v, buf, sizeof(buf)))