swanctl: Allow connection and child config names to be longer
VICI imposes an upper limit of 256 characters for names, which we should allow for connection and child configs.
This commit is contained in:
1 parent
9fe4f9fc9f
commit
80e2cf44a3
1 file changed
+2
-2
@@ -202,7 +202,7 @@ static bool add_key_values(vici_req_t *req, settings_t *cfg, char *section)
|
||||
static bool add_sections(vici_req_t *req, settings_t *cfg, char *section)
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
char *name, buf[256];
|
||||
char *name, buf[1024];
|
||||
bool ret = TRUE;
|
||||
|
||||
enumerator = cfg->create_section_enumerator(cfg, section);
|
||||
@@ -236,7 +236,7 @@ static bool load_conn(vici_conn_t *conn, settings_t *cfg,
|
||||
vici_req_t *req;
|
||||
vici_res_t *res;
|
||||
bool ret = TRUE;
|
||||
char buf[BUF_LEN];
|
||||
char buf[1024];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s.%s", "connections", section);
|
||||
|
||||
|
||||
Reference in new issue
Block a user