diff options
Diffstat (limited to 'lib/safe-browsing/ephy-gsb-storage.c')
-rw-r--r-- | lib/safe-browsing/ephy-gsb-storage.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/safe-browsing/ephy-gsb-storage.c b/lib/safe-browsing/ephy-gsb-storage.c index ce09870b0..846d34d5e 100644 --- a/lib/safe-browsing/ephy-gsb-storage.c +++ b/lib/safe-browsing/ephy-gsb-storage.c @@ -1157,7 +1157,9 @@ ephy_gsb_storage_lookup_hash_prefixes (EphyGSBStorage *self, } for (GList *l = cues; l && l->data; l = l->next) { - ephy_sqlite_statement_bind_blob (statement, id++, l->data, CUE_LEN, &error); + ephy_sqlite_statement_bind_blob (statement, id++, + g_bytes_get_data (l->data, NULL), CUE_LEN, + &error); if (error) { g_warning ("Failed to bind cue value as blob: %s", error->message); goto out; @@ -1224,7 +1226,9 @@ ephy_gsb_storage_lookup_full_hashes (EphyGSBStorage *self, } for (GList *l = hashes; l && l->data; l = l->next) { - ephy_sqlite_statement_bind_blob (statement, id++, l->data, GSB_HASH_SIZE, &error); + ephy_sqlite_statement_bind_blob (statement, id++, + g_bytes_get_data (l->data, NULL), GSB_HASH_SIZE, + &error); if (error) { g_warning ("Failed to bind hash value as blob: %s", error->message); goto out; |