save complete: ctx_find_content: compare contents, not hlcache_handles

There can be multiple hlcache_handles per sharable content.
This commit is contained in:
Michael Drake 2019-10-26 12:42:38 +01:00
parent 6e7f98787a
commit 044ddd5d43

View File

@ -147,7 +147,8 @@ save_complete_ctx_has_content(save_complete_ctx *ctx,
save_complete_entry *entry;
for (entry = ctx->list; entry != NULL; entry = entry->next) {
if (entry->content == content)
if (hlcache_handle_get_content(entry->content) ==
hlcache_handle_get_content(content))
return true;
}