From deaced48bde79fc82690e38eee45baa74b55ba51 Mon Sep 17 00:00:00 2001 From: Charlie Vigue Date: Tue, 28 Nov 2023 16:31:47 +0000 Subject: [PATCH] Fixed call of virtual from DTOR issue Removed virtual and changed the only overrider of the virtual to do the special case Signed-off-by: Charlie Vigue --- openvpn/common/scoped_fd.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/openvpn/common/scoped_fd.hpp b/openvpn/common/scoped_fd.hpp index dc331061b..1f7d87949 100644 --- a/openvpn/common/scoped_fd.hpp +++ b/openvpn/common/scoped_fd.hpp @@ -108,17 +108,12 @@ class ScopedFD { if (::close(fd) == -1) eno = errno; - post_close(eno); // OPENVPN_LOG("**** SFD CLOSE fd=" << fd << " errno=" << eno); fd = -1; } return eno; } - virtual void post_close(const int close_errno) - { - } - virtual ~ScopedFD() { // OPENVPN_LOG("**** SFD DESTRUCTOR");