]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Robert Collins: patch for splaytree_auth config dump via cachemgr
authorwessels <>
Wed, 10 Jan 2001 06:39:03 +0000 (06:39 +0000)
committerwessels <>
Wed, 10 Jan 2001 06:39:03 +0000 (06:39 +0000)
src/acl.cc

index 212ab5b0bbd3e77b2a8ca80462d113cce8ad51e1..2078df39102d6d1c2d2df2e79329e4635f124cda 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.237 2001/01/08 19:36:26 hno Exp $
+ * $Id: acl.cc,v 1.238 2001/01/09 23:39:03 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -2207,7 +2207,13 @@ aclDumpUserList(acl_user_data * data)
      * a wordlist this way costs Sum(1,N) iterations. For instance
      * a 1000-elements list will be filled in 499500 iterations.
      */
-    splay_walk(data->names, aclDumpUserListWalkee, &wl);
+    if (data->names)
+       splay_walk(data->names, aclDumpUserListWalkee, &wl);
+    else
+       /*
+        * special case for REQUIRED
+        */
+       wordlistAdd(&wl, "REQUIRED");
     return wl;
 }
 
@@ -2804,4 +2810,4 @@ aclDumpArpList(void *data)
 }
 
 /* ==== END ARP ACL SUPPORT =============================================== */
-#endif                         /* USE_ARP_ACL */
+#endif /* USE_ARP_ACL */