Navigation Menu

Skip to content

Commit

Permalink
Fix deflate compression
Browse files Browse the repository at this point in the history
We're supposed to send it on CSTP only. Not DTLS only.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 25, 2015
1 parent 238535a commit 29009f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cstp.c
Expand Up @@ -213,7 +213,7 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
buf_append(reqbuf, "X-CSTP-Version: 1\r\n");
buf_append(reqbuf, "X-CSTP-Hostname: %s\r\n", vpninfo->localname);

append_compr_types(reqbuf, "CSTP", vpninfo->req_compr & ~COMPR_DEFLATE);
append_compr_types(reqbuf, "CSTP", vpninfo->req_compr);

if (base_mtu)
buf_append(reqbuf, "X-CSTP-Base-MTU: %d\r\n", base_mtu);
Expand All @@ -235,7 +235,7 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
buf_append(reqbuf, "\r\nX-DTLS-CipherSuite: %s\r\n",
vpninfo->dtls_ciphers ? : DEFAULT_CIPHER_LIST);

append_compr_types(reqbuf, "DTLS", vpninfo->req_compr);
append_compr_types(reqbuf, "DTLS", vpninfo->req_compr & ~COMPR_DEFLATE);
buf_append(reqbuf, "\r\n");

if (buf_error(reqbuf)) {
Expand Down

0 comments on commit 29009f0

Please sign in to comment.