]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix handling of concatenated PPP data packets
authorDaniel Lenski <dlenski@gmail.com>
Mon, 7 Jun 2021 22:14:57 +0000 (15:14 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 8 Jun 2021 20:31:24 +0000 (21:31 +0100)
This 'continue' prevented us from ever actually processing a concatenated
packet if the first one was a *data* packet.  Dan only tested this for
concatenation of config packets in the early stages of the connection.  Bad
Dan.

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

diff --git a/ppp.c b/ppp.c
index c78195dc5b11f3abf97442374a36fcca93b99a5b..cb67ee87bf8cb0dc1c9484012e292a7221c65ea0 100644 (file)
--- a/ppp.c
+++ b/ppp.c
@@ -1277,7 +1277,6 @@ static int ppp_mainloop(struct openconnect_info *vpninfo, int dtls,
                                if (this == vpninfo->cstp_pkt)
                                        vpninfo->cstp_pkt = NULL;
                                work_done = 1;
-                               continue;
                        }
                        break;