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.
This commit is contained in:
Dave Reisner
2018-10-27 12:04:45 +02:00
committed by Lennart Poettering
parent 72e3507a60
commit e6b538d066
+1 -1
View File
@@ -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;
}