Signed-off-by: David Woodhouse <David.Woodhouse at intel.com> --- cstp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cstp.c b/cstp.c index ab5eba9..4da4698 100644 --- a/cstp.c +++ b/cstp.c @@ -529,13 +529,13 @@ int cstp_reconnect(struct openconnect_info *vpninfo) openconnect_close_https(vpninfo, 0); - /* Requeue the original packet that was deflated */ - if (vpninfo->current_ssl_pkt == vpninfo->deflate_pkt) { - vpninfo->current_ssl_pkt = NULL; - queue_packet(&vpninfo->outgoing_queue, vpninfo->pending_deflated_pkt); - vpninfo->pending_deflated_pkt = NULL; - } if (vpninfo->deflate) { + /* Requeue the original packet that was deflated */ + if (vpninfo->current_ssl_pkt == vpninfo->deflate_pkt) { + vpninfo->current_ssl_pkt = NULL; + queue_packet(&vpninfo->outgoing_queue, vpninfo->pending_deflated_pkt); + vpninfo->pending_deflated_pkt = NULL; + } inflateEnd(&vpninfo->inflate_strm); deflateEnd(&vpninfo->deflate_strm); } -- 1.7.10.2 -- dwmw2 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6171 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20120627/a4a988ac/attachment.bin>