@@ -383,6 +383,7 @@ struct load_url_result *load_url_async(void *ctx, struct pb_url *url,
task->async = async_cb != NULL;
task->result = talloc_zero(ctx, struct load_url_result);
task->result->task = task;
+ task->result->url = url;
task->process = process_create(task);
if (task->async) {
task->async_cb = async_cb;
@@ -30,6 +30,7 @@ struct load_url_result {
LOAD_CANCELLED,
} status;
+ struct pb_url *url;
const char *local;
bool cleanup_local;
struct load_task *task;
@@ -353,6 +353,7 @@ struct load_url_result *load_url_async(void *ctx, struct pb_url *url,
return NULL;
result->local = talloc_strdup(result, tmp);
+ result->url = url;
if (rc < 0)
result->status = LOAD_ERROR;
else