]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Increase oNCP configuration buffer size
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 23 Sep 2016 23:33:06 +0000 (00:33 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 23 Sep 2016 23:33:06 +0000 (00:33 +0100)
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 <David.Woodhouse@intel.com>
oncp.c

diff --git a/oncp.c b/oncp.c
index 2bf15715533c436ef6a1aa758a175bc437e5c0fc..b0f6d12a3f572073de6328cd7de691da34c53391 100644 (file)
--- 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. */