Skip to content

Commit

Permalink
Fix spin-loop bug in k5_sendto_kdc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
greghudson committed Nov 29, 2012
1 parent 6b37134 commit 2b06a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/krb5/os/sendto_kdc.c
Expand Up @@ -1287,7 +1287,7 @@ k5_sendto(krb5_context context, const krb5_data *message,
continue; continue;
if (maybe_send(context, state, sel_state, callback_info)) if (maybe_send(context, state, sel_state, callback_info))
continue; 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); msg_handler_data, &winner);
} }


Expand Down

0 comments on commit 2b06a22

Please sign in to comment.