]> git.sur5r.net Git - openldap/commitdiff
Ensure backend is set before calling send_ldap_extended();
authorLuke Howard <lukeh@openldap.org>
Fri, 22 Jul 2005 05:49:55 +0000 (05:49 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 22 Jul 2005 05:49:55 +0000 (05:49 +0000)
whoami was crashing for anonymous clients

servers/slapd/extended.c

index cbe8b5e581a8a21f751ae8fc57ef4c9ba4fce79a..36c42e446ecfc61baa9f6526036eb8cda6ed6a4d 100644 (file)
@@ -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 ) {