]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Unset got_cancel_cmd after reacting to it, as is already done for got_pause_cmd
authorDaniel Lenski <dlenski@gmail.com>
Sat, 15 Oct 2016 01:46:34 +0000 (18:46 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 13 Dec 2016 11:46:13 +0000 (11:46 +0000)
commit75d3bd936b2cd95d6337c6a043507d3900436f35
treebaeea51577f47904259a4a5ef27eebaf30aabd3e
parent1d84a7baefeba108a474b628a4dc13ca707bac15
Unset got_cancel_cmd after reacting to it, as is already done for got_pause_cmd

Per David Woodhouse (http://lists.infradead.org/pipermail/openconnect-devel/2016-October/004034.html):

> I think it's probably OK to set vpninfo->got_cancel_cmd=0 in the mainloop
> right before calling proto->vpn_close_session.  If we get cancelled
> *again* then we'll give up on that too.

Without this fix, do_https_request() can't be used to close the
session — it interrupts itself as soon as it sees that got_cancel_cmd is
set.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
mainloop.c