Skip to content
Snippets Groups Projects
Verified Commit a50f7ea2 authored by Christian Marangi's avatar Christian Marangi
Browse files

io_url_wget: correctly init wget_out on apk_io_url_init call


Commit fc7768c0 ("io_url_wget: log wget output using apk_process
api") reworked the implementation but forgot to init the static wget_out
on calling apk_io_url_init. This cause APK to SIGFAULT on apk update or
apk add when actually using the WGET method to download remote packages.

Fix this by setting wget_out with the passed out from apk_io_url_init.

Reported-by: default avatarJohn Crispin <john@phrozen.org>
Fixes: fc7768c0 ("io_url_wget: log wget output using apk_process api")
Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
parent 0fe23ce1
No related branches found
No related tags found
1 merge request!285io_url_wget: correctly init wget_out on apk_io_url_init call
Pipeline #304053 passed
...@@ -48,4 +48,5 @@ void apk_io_url_set_redirect_callback(void (*cb)(int, const char *)) ...@@ -48,4 +48,5 @@ void apk_io_url_set_redirect_callback(void (*cb)(int, const char *))
void apk_io_url_init(struct apk_out *out) void apk_io_url_init(struct apk_out *out)
{ {
wget_out = out;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment