mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 17:38:42 +00:00
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:
committed by
Lennart Poettering
parent
72e3507a60
commit
e6b538d066
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user