]> git.sur5r.net Git - openldap/commitdiff
ITS#8215 fix cd9980c48b0a6b5e4c0fb56dc2a1bc4c845f4040
authorHoward Chu <hyc@openldap.org>
Tue, 27 Oct 2015 11:46:08 +0000 (11:46 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 27 Oct 2015 11:46:08 +0000 (11:46 +0000)
Wrong function signature

servers/slapd/bconfig.c

index 98cc18009cfd1d5b117bb339ea6d6ea6b7f985b4..5391f56c7defda38750e216aaec21e1d9c929152 100644 (file)
@@ -7597,17 +7597,17 @@ config_tool_entry_modify( BackendDB *be, Entry *e, struct berval *text )
 }
 
 static int
-config_tool_entry_delete( BackendDB *be, Entry *e, struct berval *text )
+config_tool_entry_delete( BackendDB *be, struct berval *ndn, struct berval *text )
 {
        CfBackInfo *cfb = be->be_private;
        BackendInfo *bi = cfb->cb_db.bd_info;
        CfEntryInfo *ce, *last;
        ConfigArgs ca = {0};
 
-       ce = config_find_base( cfb->cb_root, &e->e_nname, &last );
+       ce = config_find_base( cfb->cb_root, ndn, &last );
 
        if ( ce && bi && bi->bi_tool_entry_delete )
-               return bi->bi_tool_entry_delete( &cfb->cb_db, e, text );
+               return bi->bi_tool_entry_delete( &cfb->cb_db, ndn, text );
 
        return LDAP_OTHER;
 }