mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
vici: Increase maximum proposal length
This commit is contained in:
parent
fe14a9fb8b
commit
99aab8fe2a
@ -55,6 +55,11 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/**
|
||||
* Maximum proposal length
|
||||
*/
|
||||
#define MAX_PROPOSAL_LEN 2048
|
||||
|
||||
/**
|
||||
* Magic value for an undefined lifetime
|
||||
*/
|
||||
@ -594,7 +599,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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user