From 20f8e9c73c774872b6bb6363c098b6c43cce5a59 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 1 Jan 2016 20:44:03 +0100 Subject: [PATCH] update max_fd to new max, never lower it --- src/mint-lib/mint_api_context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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));