]> andersk Git - mod-vhost-ldap.git/blobdiff - mod_vhost_ldap.c
Handle the case of an unexpected LDAP attribute
[mod-vhost-ldap.git] / 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.024408 seconds and 4 git commands to generate.