Small fix to bool warning, plus a missing variable change in the 1.3 code.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 26 Jan 2005 05:34:24 +0000 (05:34 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 26 Jan 2005 05:34:24 +0000 (05:34 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1329 cb58f699-b61c-0410-a6fe-9272a202ed29

apache/mod_apache.cpp

index 4488ee0..bdd0df4 100644 (file)
@@ -215,7 +215,7 @@ public:
       throw ShibTargetException(SHIBRPC_OK, "EEP");
   }
   ~HTGroupTableApache() {}
-  bool lookup(const char *entry) { return (ap_table_get(groups, entry)); }
+  bool lookup(const char *entry) { return (ap_table_get(groups, entry)!=NULL); }
   SH_AP_TABLE* groups;
 };
 
@@ -267,7 +267,7 @@ public:
 
     string cgistr;
     char buff[HUGE_STRING_LEN];
-    ap_hard_timeout("[mod_shib] getPostData", r);
+    ap_hard_timeout("[mod_shib] getPostData", m_req);
     memset(buff, 0, sizeof(buff));
     while (ap_get_client_block(m_req, buff, sizeof(buff)-1) > 0) {
       ap_reset_timeout(m_req);