]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: properly re-initialize dco_del_peer_reason
authorAntonio Quartulli <a@unstable.cc>
Tue, 3 Jan 2023 20:23:28 +0000 (21:23 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 7 Jan 2023 16:57:18 +0000 (17:57 +0100)
commite9889016fb7269d025a2dbba5f7079ee87e39520
treeb0134aeb6817df1659dbde872406342c297d471b
parenteff95d500481c7927c5a9edd6b5c0dfa056a0cbb
dco: properly re-initialize dco_del_peer_reason

After processing a message, all fields of the dco object should be
re-initialized so that future processings are not affected by stale
values.

This includes dco_del_peer_reason.

Since its values can start at 0, re-initialize it with -1.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20230103202330.1835-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25881.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/multi.c