]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: bail out when no peer-specific message is delivered
authorAntonio Quartulli <a@unstable.cc>
Tue, 3 Jan 2023 20:23:29 +0000 (21:23 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 7 Jan 2023 17:12:23 +0000 (18:12 +0100)
commitb0dee39c353ae9479fd19e66ae07cb336d57eef8
treee25ceabdb7fe8fa4434b1c26ba022e0f118a1580
parentaaccf88431eb146231a600971227a8a6c395b349
dco: bail out when no peer-specific message is delivered

multi_process_incoming_dco() is currently partly processing
messages that were actually discarded. This results in a bogus
message being printed:

"Received packet for peer-id unknown to OpenVPN: -1, type 0, reason 2"

Change the flow so that we bail out immediately when we know that no
message was truly delivered by DCO.
Currently this can be verified by chacking that the peed_is is greater
than -1.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20230103202330.1835-2-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25882.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 388e032019ec3674b8294c856039b96fe35e5f32)
src/openvpn/multi.c