kore

a fork of the worlds most advanced web framework
Log | Files | Refs | README | LICENSE

commit 1b9ba84ab0783819f3b615c6203e85f9fcfbd431
parent a9683caed589465211c24c3a2088dd30c7865173
Author: Joris Vink <joris@coders.se>
Date:   Wed, 24 Apr 2019 09:33:56 +0200

missing return value check.

Diffstat:
Msrc/curl.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/curl.c b/src/curl.c @@ -564,6 +564,7 @@ curl_timer(CURLM *mctx, long timeout, void *arg) static void curl_event_handle(void *arg, int eof) { + CURLMcode res; int flags; ssize_t bytes; char buf[32]; @@ -580,7 +581,9 @@ curl_event_handle(void *arg, int eof) if (eof) flags = CURL_CSELECT_ERR; - curl_multi_socket_action(multi, fdc->fd, flags, &running); + res = curl_multi_socket_action(multi, fdc->fd, flags, &running); + if (res != CURLM_OK) + fatal("curl_multi_socket_action: %s", curl_multi_strerror(res)); /* * XXX - libcurl doesn't work with edge triggered i/o so check