-/* $OpenBSD: rde.c,v 1.629 2024/08/28 13:21:39 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.630 2024/09/09 12:59:49 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
return;
}
memcpy(&ctx->mrt, mrt, sizeof(struct mrt));
- TAILQ_INIT(&ctx->mrt.wbuf.bufs);
+ msgbuf_init(&ctx->mrt.wbuf);
ctx->mrt.wbuf.fd = fd;
ctx->mrt.state = MRT_STATE_RUNNING;
rid = rib_find(ctx->mrt.rib);
-/* $OpenBSD: session.c,v 1.481 2024/08/20 11:59:39 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.482 2024/09/09 12:59:49 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
if (mrt == NULL)
fatal("session_dispatch_imsg");
memcpy(mrt, &xmrt, sizeof(struct mrt));
- TAILQ_INIT(&mrt->wbuf.bufs);
+ msgbuf_init(&mrt->wbuf);
LIST_INSERT_HEAD(&mrthead, mrt, entry);
} else {
/* old dump reopened */
close(mrt->wbuf.fd);
- mrt->wbuf.fd = xmrt.wbuf.fd;
}
+ mrt->wbuf.fd = xmrt.wbuf.fd;
break;
case IMSG_MRT_CLOSE:
if (idx != PFD_PIPE_MAIN)