Skip to content

Commit

Permalink
fixup! Factor out a libotcore
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Jul 8, 2023
1 parent bd9b864 commit 1898524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/switchroot/ostree-prepare-root.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ load_commit_for_deploy (const char *root_mountpoint, const char *deploy_path, GV
static gboolean
validate_signature (GBytes *data, GVariant *signatures, const guchar *pubkey, size_t pubkey_size)
{
g_autoptr(GBytes) pubkey_buf = g_bytes_new_static (pubkey, pubkey_size);
g_autoptr (GBytes) pubkey_buf = g_bytes_new_static (pubkey, pubkey_size);

for (gsize i = 0; i < g_variant_n_children (signatures); i++)
{
g_autoptr(GError) local_error = NULL;
g_autoptr (GError) local_error = NULL;
g_autoptr (GVariant) child = g_variant_get_child_value (signatures, i);
g_autoptr (GBytes) signature = g_variant_get_data_as_bytes (child);
bool valid = false;
Expand Down

0 comments on commit 1898524

Please sign in to comment.