]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix spin-loop bug in k5_sendto_kdc
authorGreg Hudson <ghudson@mit.edu>
Thu, 29 Nov 2012 06:58:13 +0000 (01:58 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 29 Nov 2012 06:59:17 +0000 (01:59 -0500)
In the second part of the first pass over the server list, we passed
the wrong list pointer to service_fds, causing it to see only a subset
of the server entries corresponding to sel_state.  This could cause
service_fds to spin if an event is reported on an fd not in the
subset.

ticket: 7454
target_version: 1.10.4
tags: pullup

src/lib/krb5/os/sendto_kdc.c

index 63dbcd8f41ef6971f2ba0f29432228c16893cab1..22cd90812662ada503ce9bd408935610aa1a5d3a 100644 (file)
@@ -1287,7 +1287,7 @@ k5_sendto(krb5_context context, const krb5_data *message,
             continue;
         if (maybe_send(context, state, sel_state, callback_info))
             continue;
-        done = service_fds(context, sel_state, 1, state, seltemp, msg_handler,
+        done = service_fds(context, sel_state, 1, conns, seltemp, msg_handler,
                            msg_handler_data, &winner);
     }