]> andersk Git - mod-vhost-ldap.git/commitdiff
Handle the case of an unexpected LDAP attribute scripts
authorGreg Brockman <gdb@mit.edu>
Fri, 27 Aug 2010 01:23:13 +0000 (01:23 +0000)
committerGreg Brockman <gdb@mit.edu>
Fri, 27 Aug 2010 01:23:13 +0000 (01:23 +0000)
git-svn-id: svn://scripts.mit.edu/trunk@1608 db9d59ff-b01e-0410-9b1a-cd9a8c06840f

mod_vhost_ldap.c

index d8de0b3302afc946f83670be612c0ac821241289..6bc67fc2e0fc1406ab56cc9a96a1a0c81b4d552b 100644 (file)
@@ -618,6 +618,13 @@ null:
                }
                reqc->cgiroot = val;
            }
+           else {
+               /* This should not actually be reachable, but it's
+                  good to cover all all possible cases */
+                ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r,
+                              "Unexpected attribute %s encountered", attributes[i]);
+                continue;
+            }
 
            if (val == NULL)
                 continue;
This page took 0.039672 seconds and 5 git commands to generate.