Skip to content

Commit

Permalink
Fix fencepost error in krad timeout handler
Browse files Browse the repository at this point in the history
ticket: 7911
target_version: 1.12.2
tags: pullup
  • Loading branch information
greghudson committed May 24, 2014
1 parent 406f273 commit f4fce5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/krad/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ on_timeout(verto_ctx *ctx, verto_ev *ev)
req->timer = NULL; /* Void the timer event. */

/* If we have more retries to perform, resend the packet. */
if (req->retries-- > 1) {
if (req->retries-- > 0) {
req->sent = 0;
retval = remote_add_flags(req->rr, FLAGS_WRITE);
if (retval == 0)
Expand Down

0 comments on commit f4fce5a

Please sign in to comment.