[cpp-sp] branch main updated: Fix double delete with smart ptr.

Scott Cantor cantor.2 at osu.edu
Thu Jan 23 17:38:05 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=5fc7645399d0c83277ba54c09f4e93539c60ecbd

The following commit(s) were added to refs/heads/main by this push:
     new 5fc76453 Fix double delete with smart ptr.
5fc76453 is described below

commit 5fc7645399d0c83277ba54c09f4e93539c60ecbd
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Jan 23 12:37:43 2025 -0500

    Fix double delete with smart ptr.
---
 iis7_shib/register.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iis7_shib/register.cpp b/iis7_shib/register.cpp
index 4e106ab6..a3d53864 100644
--- a/iis7_shib/register.cpp
+++ b/iis7_shib/register.cpp
@@ -104,7 +104,7 @@ RegisterModule(
     const Agent& agent = g_Config->getAgent();
 
     try {
-        g_ModuleConfig.reset(iis::ModuleConfig::newModuleConfig().get());
+        g_ModuleConfig.swap(iis::ModuleConfig::newModuleConfig().get());
     } catch (const exception& ex) {
         log.crit("IIS module failed during module configuration installation: %s", ex.what());
         g_Config=nullptr;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list