corrected size calculation for CONFIG_MSG

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-12 10:23:39 +01:00
parent 3c82dc7787
commit eb09efb6d7
+3
View File
@@ -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); 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); ret = tls_printf(ws->session, "Content-Length: %u\r\n", (unsigned)size);
if (ret < 0) if (ret < 0)