chiark / gitweb /
import: dck - fix curl error handling
authorTom Gundersen <teg@jklm.no>
Fri, 19 Dec 2014 02:00:56 +0000 (03:00 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 19 Dec 2014 02:00:56 +0000 (03:00 +0100)
src/import/import-dck.c

index 7c83ff7..adb0c90 100644 (file)
@@ -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;
         }