From 8c52d0e40160096d267b461d2285733432a14138 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 22 Jul 2005 05:49:55 +0000 Subject: [PATCH] Ensure backend is set before calling send_ldap_extended(); whoami was crashing for anonymous clients --- servers/slapd/extended.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/extended.c b/servers/slapd/extended.c index cbe8b5e581..36c42e446e 100644 --- a/servers/slapd/extended.c +++ b/servers/slapd/extended.c @@ -222,6 +222,8 @@ fe_extended( Operation *op, SlapReply *rs ) } } + if ( op->o_bd == NULL ) + op->o_bd = frontendDB; send_ldap_extended( op, rs ); if ( rs->sr_ref != default_referral ) {