diff options
author | Dave Reisner <dreisner@archlinux.org> | 2018-10-26 23:46:49 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-27 12:04:45 +0200 |
commit | e6b538d06680857fb25e2a6da94fc416bb2340f5 (patch) | |
tree | c4f1f43d5f20423eb721f82b790c4c8f8bffbf84 | |
parent | 72e3507a600adfc453b5f237d87d92a1ccabdadf (diff) | |
download | systemd-e6b538d06680857fb25e2a6da94fc416bb2340f5.tar.gz systemd-e6b538d06680857fb25e2a6da94fc416bb2340f5.tar.bz2 systemd-e6b538d06680857fb25e2a6da94fc416bb2340f5.zip |
curl-util: fix error code check from curl_multi_socket_action
After curl 7.20.0, this function never returns negative error codes.
Make this consistent with the other call to this function and only
compare against CURLM_OK.
-rw-r--r-- | src/import/curl-util.c | 2 |
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; } |