]> git.sur5r.net Git - openldap/commitdiff
as a temporary hack, return result without rewriting match
authorPierangelo Masarati <ando@openldap.org>
Tue, 22 Jan 2002 08:17:02 +0000 (08:17 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 22 Jan 2002 08:17:02 +0000 (08:17 +0000)
servers/slapd/back-ldap/bind.c

index 673a63be02954aa092c5ef00088333796d1882a2..3031f2e457a9e4f837e6cc7b0fb2942af922815d 100644 (file)
@@ -411,8 +411,13 @@ ldap_back_op_result(struct ldapconn *lc, Operation *op)
 #ifdef ENABLE_REWRITE
        
        /*
-        * need rewrite info; mmmh ...
+        * FIXME: need rewrite info for match; mmmh ...
         */
+       send_ldap_result( lc->conn, op, err, match, msg, NULL, NULL );
+       /* better test the pointers before freeing? */
+       if ( match ) {
+               free( match );
+       }
 
 #else /* !ENABLE_REWRITE */
 
@@ -421,6 +426,7 @@ ldap_back_op_result(struct ldapconn *lc, Operation *op)
        if ( match ) {
                free( match );
        }
+
 #endif /* !ENABLE_REWRITE */
 
        if ( msg ) free( msg );