s3:registry: add db_context argument to regdb_delete_secdesc()
[ira/wip.git] / source3 / registry / reg_backend_db.c
index bcec77926b00a5505b46321bc081f3c73e6b2967..1a6ae7bb4531fa0919bd7e7acd3253b6b7a3185f 100644 (file)
@@ -556,9 +556,9 @@ static WERROR regdb_delete_values(struct db_context *db, const char *keyname)
        return regdb_delete_key_with_prefix(db, keyname, REG_VALUE_PREFIX);
 }
 
-static WERROR regdb_delete_secdesc(const char *keyname)
+static WERROR regdb_delete_secdesc(struct db_context *db, const char *keyname)
 {
-       return regdb_delete_key_with_prefix(regdb, keyname, REG_SECDESC_PREFIX);
+       return regdb_delete_key_with_prefix(db, keyname, REG_SECDESC_PREFIX);
 }
 
 static WERROR regdb_delete_subkeylist(const char *keyname)
@@ -577,7 +577,7 @@ static WERROR regdb_delete_key_lists(const char *keyname)
                goto done;
        }
 
-       werr = regdb_delete_secdesc(keyname);
+       werr = regdb_delete_secdesc(regdb, keyname);
        if (!W_ERROR_IS_OK(werr)) {
                DEBUG(1, (__location__ " Deleting %s/%s failed: %s\n",
                          REG_SECDESC_PREFIX, keyname, win_errstr(werr)));