[cpp-sp] branch main updated: Fix use of unique_ptr
Rod Widdowson
rdw at steadingsoftware.com
Fri Jan 24 09:38:06 UTC 2025
This is an automated email from the git hooks/post-receive script.
rdw 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=cec449e190ec783258b7b31ffbbae3e9020121ec
The following commit(s) were added to refs/heads/main by this push:
new cec449e1 Fix use of unique_ptr
cec449e1 is described below
commit cec449e190ec783258b7b31ffbbae3e9020121ec
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Jan 24 09:37:17 2025 +0000
Fix use of unique_ptr
swap needs a declared parameter. The return from a function doesnt work.
---
iis7_shib/register.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/iis7_shib/register.cpp b/iis7_shib/register.cpp
index a3d53864..d3d425fb 100644
--- a/iis7_shib/register.cpp
+++ b/iis7_shib/register.cpp
@@ -104,7 +104,8 @@ RegisterModule(
const Agent& agent = g_Config->getAgent();
try {
- g_ModuleConfig.swap(iis::ModuleConfig::newModuleConfig().get());
+ unique_ptr<ModuleConfig> newModuleConfig(iis::ModuleConfig::newModuleConfig());
+ g_ModuleConfig.swap(newModuleConfig);
} 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