From 8740528b2477f872147998ca19a66d2fae12631b Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Tue, 14 May 2019 15:33:36 -0400 Subject: [PATCH] Windows-compatible sentinel socket type and value --- lib/krb5/send_to_kdc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/krb5/send_to_kdc.c b/lib/krb5/send_to_kdc.c index 123a20d47..a785c1b71 100644 --- a/lib/krb5/send_to_kdc.c +++ b/lib/krb5/send_to_kdc.c @@ -943,7 +943,7 @@ struct wait_ctx { krb5_sendto_ctx ctx; fd_set rfds; fd_set wfds; - int max_fd; + rk_socket_t max_fd; int got_reply; time_t timenow; }; @@ -1047,7 +1047,7 @@ wait_response(krb5_context context, int *action, krb5_sendto_ctx ctx) wait_ctx.ctx = ctx; FD_ZERO(&wait_ctx.rfds); FD_ZERO(&wait_ctx.wfds); - wait_ctx.max_fd = -1; + wait_ctx.max_fd = rk_INVALID_SOCKET; /* oh, we have a reply, it must be a plugin that got it for us */ if (ctx->response.length) { @@ -1073,7 +1073,7 @@ wait_response(krb5_context context, int *action, krb5_sendto_ctx ctx) return 0; } - if (wait_ctx.max_fd == -1) { + if (wait_ctx.max_fd == rk_INVALID_SOCKET) { /* * If we don't find a host which can make progress, then * we accelerate the process by moving all of the contestants