Access sock name through function.
authorScott Cantor <cantor.2@osu.edu>
Tue, 1 Jul 2003 15:45:53 +0000 (15:45 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 1 Jul 2003 15:45:53 +0000 (15:45 +0000)
mod_shibrm/mod_shibrm.cpp
mod_shire/mod_shire.cpp

index 62b3be3..1cf76dd 100644 (file)
@@ -138,7 +138,7 @@ extern "C" void shibrm_child_init(server_rec* s, pool* p)
 
     // Create the RPC Handle..  Note: this should be per _thread_
     // if there is some way to do that reasonably..
-    rpc_handle = new RPCHandle(g_Config->m_SocketName, SHIBRPC_PROG, SHIBRPC_VERS_1);
+    rpc_handle = new RPCHandle(shib_target_sockname(), SHIBRPC_PROG, SHIBRPC_VERS_1);
 
        // Transcode the attribute names we know about for quick handling map access.
     for (map<string,string>::const_iterator i=g_mapAttribNameToHeader.begin();
index eb92684..1207546 100644 (file)
@@ -148,7 +148,7 @@ extern "C" void shire_child_init(server_rec* s, pool* p)
 
     // Create the RPC Handle..  Note: this should be per _thread_
     // if there is some way to do that reasonably..
-    rpc_handle = new RPCHandle(g_Config->m_SocketName, SHIBRPC_PROG, SHIBRPC_VERS_1);
+    rpc_handle = new RPCHandle(shib_target_sockname(), SHIBRPC_PROG, SHIBRPC_VERS_1);
 
     ap_log_error(APLOG_MARK,APLOG_DEBUG|APLOG_NOERRNO,s,"shire_child_init() done");
 }