s4:dsdb Fix of double addition of SD-s
[ira/wip.git] / source4 / dsdb / samdb / ldb_modules / objectclass.c
index 0246de130c8dae87b7729186de7e53baa3560bb9..3cf252c71a8872dbda4efc5a68b5c7a01a3cadd7 100644 (file)
@@ -250,6 +250,8 @@ static int get_search_callback(struct ldb_request *req, struct ldb_reply *ares)
                                        ares->response, ares->error);
        }
 
+       ldb_reset_err_string(ldb);
+
        switch (ares->type) {
        case LDB_REPLY_ENTRY:
                if (ac->search_res != NULL) {