From 8f8734bfa88885a91c9aeccdd6e496aed0741521 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 24 Sep 2016 00:33:06 +0100 Subject: [PATCH] Increase oNCP configuration buffer size We've seen 'KMP message 301 from server too large (10596 bytes)' in the wild. Bump it up for now, but this really wants to be dynamically handled. Signed-off-by: David Woodhouse --- oncp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oncp.c b/oncp.c index 2bf15715..b0f6d12a 100644 --- a/oncp.c +++ b/oncp.c @@ -543,7 +543,7 @@ int oncp_connect(struct openconnect_info *vpninfo) { int ret, len, kmp, kmplen, group; struct oc_text_buf *reqbuf; - unsigned char bytes[8192]; + unsigned char bytes[16384]; /* XXX: We should do what cstp_connect() does to check that configuration hasn't changed on a reconnect. */ -- 2.49.0