diff options
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/pull-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/import/pull-common.c b/src/import/pull-common.c index efd67a2937..57323531e2 100644 --- a/src/import/pull-common.c +++ b/src/import/pull-common.c @@ -92,9 +92,9 @@ int pull_find_old_etags(const char *url, const char *image_root, int dt, const c if (a >= b) continue; - u = cunescape_length(a, b - a); - if (!u) - return -ENOMEM; + r = cunescape_length(a, b - a, 0, &u); + if (r < 0) + return r; if (!http_etag_is_valid(u)) { free(u); |