Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bye packet length
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Oct 3, 2009
1 parent 2d96b7b commit 7edf904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cstp.c
Expand Up @@ -685,8 +685,8 @@ int cstp_bye(struct openconnect_info *vpninfo, char *reason)
memcpy(bye_pkt, data_hdr, 8);
memcpy(bye_pkt + 9, reason, reason_len);

bye_pkt[4] = reason_len >> 8;
bye_pkt[5] = reason_len & 0xff;
bye_pkt[4] = (reason_len + 1) >> 8;
bye_pkt[5] = (reason_len + 1) & 0xff;
bye_pkt[6] = AC_PKT_DISCONN;
bye_pkt[8] = 0xb0;

Expand Down

0 comments on commit 7edf904

Please sign in to comment.