Skip to content
Snippets Groups Projects
Commit c685ae64 authored by Guillaume's avatar Guillaume Committed by Allan McRae
Browse files

fix a segfault in sandbox.c if handle->dlcb is null

(cherry picked from commit a2d02938)
parent e3aedfb7
No related branches found
Tags 3.22.0-1
No related merge requests found
Pipeline #112038 passed
......@@ -222,7 +222,9 @@ bool _alpm_sandbox_process_cb_download(alpm_handle_t *handle, int callback_pipe)
ASSERT(read_from_pipe(callback_pipe, filename, filename_size) != -1, FREE(filename); return false);
filename[filename_size] = '\0';
handle->dlcb(handle->dlcb_ctx, filename, type, &cb_data);
if(handle->dlcb) {
handle->dlcb(handle->dlcb_ctx, filename, type, &cb_data);
}
FREE(filename);
return true;
}
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