]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Increase buffer size for oNCP configuration
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 Jul 2019 11:02:44 +0000 (12:02 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 Jul 2019 11:15:12 +0000 (12:15 +0100)
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729693

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
oncp.c

diff --git a/oncp.c b/oncp.c
index 8a3e178e2beb1a19388271cbb66065d7e0406171..97a6020d637bc0f83d3cc159cd22fdcc17c2b28c 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, check_len;
        struct oc_text_buf *reqbuf;
-       unsigned char bytes[16384];
+       unsigned char bytes[65536];
 
        /* XXX: We should do what cstp_connect() does to check that configuration
           hasn't changed on a reconnect. */