kcc: Fix a -Werror,-Wformat-security error
authorVolker Lendecke <vl@samba.org>
Fri, 2 Sep 2016 07:17:33 +0000 (09:17 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 2 Sep 2016 11:54:45 +0000 (13:54 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Sep  2 13:54:45 CEST 2016 on sn-devel-144

source4/dsdb/kcc/garbage_collect_tombstones.c

index 8d8a51f6a0cb301c91c97c625345cee306436ece..8d2ea8b477a1e64271e6dae3599a5369ccb3b45a 100644 (file)
@@ -149,7 +149,7 @@ NTSTATUS dsdb_garbage_collect_tombstones(TALLOC_CTX *mem_ctx,
                        DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT |
                        DSDB_SEARCH_REVEAL_INTERNALS;
                ret = dsdb_search(samdb, tmp_ctx, &res, part->dn, LDB_SCOPE_SUBTREE,
-                                 attrs, flags, filter);
+                                 attrs, flags, "%s", filter);
 
                if (ret != LDB_SUCCESS) {
                        *error_string = talloc_asprintf(mem_ctx, "Failed to search for deleted objects in %s: %s",