summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/import/curl-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c
index 848bbd0669..539e2c28ac 100644
--- a/src/import/curl-util.c
+++ b/src/import/curl-util.c
@@ -41,7 +41,7 @@ static int curl_glue_on_io(sd_event_source *s, int fd, uint32_t revents, void *u
else
action = 0;
- if (curl_multi_socket_action(g->curl, translated_fd, action, &k) < 0) {
+ if (curl_multi_socket_action(g->curl, translated_fd, action, &k) != CURLM_OK) {
log_debug("Failed to propagate IO event.");
return -EINVAL;
}