(void) fr_bio_retry_reset_timer(my);
}
-#ifndef NDEBUG
- item->buffer = NULL;
-#endif
- item->uctx = NULL;
item->packet_ctx = NULL;
fr_assert(my->first != item);
if (item->cancelled) {
(void) fr_rb_remove_by_inline_node(&my->rb, &item->node);
-#ifndef NDEBUG
- item->buffer = NULL;
-#endif
- item->uctx = NULL;
item->packet_ctx = NULL;
fr_bio_retry_list_insert_head(&my->free, item);
fr_assert(item != NULL);
fr_assert(item->my == my);
- item->retry.config = NULL;
- item->retry.start = fr_time();
- item->packet_ctx = packet_ctx;
- item->buffer = buffer;
- item->size = size;
+ *item = (fr_bio_retry_entry_t) {
+ .my = my,
+ .retry.start = fr_time(),
+ .packet_ctx = packet_ctx,
+ .buffer = buffer,
+ .size = size,
+ };
/*
* Tell the application that we've saved the packet. The "item" pointer allows the application