From 66e83f3a78a3c124b92a400256d28988df4e388f Mon Sep 17 00:00:00 2001 From: Greg Brockman Date: Fri, 27 Aug 2010 01:23:13 +0000 Subject: [PATCH] Handle the case of an unexpected LDAP attribute git-svn-id: svn://scripts.mit.edu/trunk@1608 db9d59ff-b01e-0410-9b1a-cd9a8c06840f --- mod_vhost_ldap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mod_vhost_ldap.c b/mod_vhost_ldap.c index d8de0b3..6bc67fc 100644 --- a/mod_vhost_ldap.c +++ b/mod_vhost_ldap.c @@ -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; -- 2.45.1