aboutsummaryrefslogtreecommitdiff
path: root/src/mint-lib/mint_api_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint-lib/mint_api_context.c')
-rw-r--r--src/mint-lib/mint_api_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mint-lib/mint_api_context.c b/src/mint-lib/mint_api_context.c
index 9ab136081..e60e01b07 100644
--- a/src/mint-lib/mint_api_context.c
+++ b/src/mint-lib/mint_api_context.c
@@ -334,14 +334,17 @@ TALER_MINT_get_select_info (struct TALER_MINT_Context *ctx,
long *timeout)
{
long to;
+ int m;
+ m = -1;
GNUNET_assert (CURLM_OK ==
curl_multi_fdset (ctx->multi,
read_fd_set,
write_fd_set,
except_fd_set,
- max_fd));
+ &m));
to = *timeout;
+ *max_fd = GNUNET_MAX (m, *max_fd);
GNUNET_assert (CURLM_OK ==
curl_multi_timeout (ctx->multi,
&to));