mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
import: dck - fix curl error handling
This commit is contained in:
parent
c3a0d00d6d
commit
eac8e8c6de
@ -715,7 +715,7 @@ static void dck_import_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result
|
||||
job->done = true;
|
||||
|
||||
if (result != CURLE_OK) {
|
||||
log_error("Transfer failed: %s", curl_easy_strerror(code));
|
||||
log_error("Transfer failed: %s", curl_easy_strerror(result));
|
||||
r = -EIO;
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user