[shibboleth-sp2] 07/100: Backported child shutdown fix

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:12 UTC 2016


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

wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.

commit f6d082e6d242ec9078f2e4a8ba0f8c9384d4ca61
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Thu Jul 22 18:57:10 2004 +0000

    Backported child shutdown fix
---
 shib-target/shib-config.cpp    |  2 ++
 shib-target/shib-rpchandle.cpp | 10 +++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/shib-target/shib-config.cpp b/shib-target/shib-config.cpp
index 3114315..9a0e17a 100644
--- a/shib-target/shib-config.cpp
+++ b/shib-target/shib-config.cpp
@@ -178,8 +178,10 @@ void STConfig::shutdown()
     Category& log = Category::getInstance("shibtarget.STConfig");
     log.info("shutting down the library");
     delete m_tranLogLock;
+    m_tranLogLock = NULL;
     //delete m_tranLog; // This is crashing for some reason, but we're shutting down anyway.
     delete m_ini;
+    m_ini = NULL;
     ShibConfig::getConfig().term();
     SAMLConfig::getConfig().term();
     log.info("library shutdown complete");
diff --git a/shib-target/shib-rpchandle.cpp b/shib-target/shib-rpchandle.cpp
index 4282787..c71d8e4 100644
--- a/shib-target/shib-rpchandle.cpp
+++ b/shib-target/shib-rpchandle.cpp
@@ -88,9 +88,13 @@ void RPCHandle::disconnect()
         clnt_destroy(m_clnt);
         m_clnt=NULL;
         IConfig* conf=ShibTargetConfig::getConfig().getINI();
-        Locker locker(conf);
-        conf->getListener()->close(m_sock);
-        m_sock=(IListener::ShibSocket)0;
+        if (conf) {
+            Locker locker(conf);
+            conf->getListener()->close(m_sock);
+            m_sock=(IListener::ShibSocket)0;
+        }
+        else
+            m_sock=(IListener::ShibSocket)0;
     }
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list