diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-13 09:13:50 +0800 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 16:40:21 +1100 |
commit | 1abc62990a5817de56a55470fb2c62e966134722 (patch) | |
tree | 912e5347cbe27366dbec4edf17998f42fc73cb4d /discover/paths.c | |
parent | 4563c5d672f605c493996a652b9e3e588a8596dd (diff) | |
download | talos-petitboot-1abc62990a5817de56a55470fb2c62e966134722.tar.gz talos-petitboot-1abc62990a5817de56a55470fb2c62e966134722.zip |
discover: Add reference to url in load_url_result
We may want to access the loaded URL in a async handler.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/paths.c')
-rw-r--r-- | discover/paths.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/paths.c b/discover/paths.c index 7fcff9e..8d85619 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -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; |