From eb09efb6d70a9c36034c94b39a9a5a4a4e0c031a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 12 Jan 2014 10:23:39 +0100 Subject: [PATCH] corrected size calculation for CONFIG_MSG --- src/worker-auth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/worker-auth.c b/src/worker-auth.c index af83af6f..9ccafbc2 100644 --- a/src/worker-auth.c +++ b/src/worker-auth.c @@ -451,6 +451,9 @@ int post_common_handler(worker_st * ws, unsigned http_ver) } size += (sizeof(SUCCESS_MSG_HEAD) - 1) + (sizeof(SUCCESS_MSG_FOOT) - 1); +#ifdef ANYCONNECT_CLIENT_COMPAT + size += sizeof(CONFIG_MSG) - 1; +#endif ret = tls_printf(ws->session, "Content-Length: %u\r\n", (unsigned)size); if (ret < 0)