0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

Changed virtual override to final

It's possible that someone might try to derive from and override
here, and if so the result will be perhaps not as expected. This
change will make it slightly harder to produce an unexpected
call to the wrong vtable dispatch from the ctor.

Signed-off-by: Charlie Vigue <charlie.vigue@openvpn.com>
This commit is contained in:
Charlie Vigue 2023-11-06 05:03:18 +00:00 committed by David Sommerseth
parent 22ba196429
commit 3927b61b33
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -59,7 +59,7 @@ class BufferComposed
return iter != bc.bv.end();
}
virtual void next_buffer() override
virtual void next_buffer() final
{
if (iter_defined())
reset_buf(**iter++);