From: Dave Reisner Date: Sat, 27 Oct 2018 03:46:49 +0000 (-0400) Subject: curl-util: fix error code check from curl_multi_socket_action X-Git-Tag: v240~455 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b538d06680857fb25e2a6da94fc416bb2340f5;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/import/curl-util.c b/src/import/curl-util.c index 848bbd06692..539e2c28acd 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; }