summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/parser.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:28:55 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:28:55 +0000
commit94b4ab6477f7a9800d77232563fa206c1ee8a907 (patch)
tree435b6b5461b61f0d45317fe18b5e6719c7f9f439 /usr.sbin/rpki-client/parser.c
parentd4c259af8b5a77d599c11a2f0611ab1cfb868044 (diff)
Adjust rpki-client to the new msgbuf_write api
OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/parser.c')
-rw-r--r--usr.sbin/rpki-client/parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c
index 1512028439b..29ff2506d2c 100644
--- a/usr.sbin/rpki-client/parser.c
+++ b/usr.sbin/rpki-client/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.145 2024/11/21 13:12:19 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.146 2024/11/21 13:28:54 claudio Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -1071,7 +1071,6 @@ proc_parser(int fd)
TAILQ_INIT(&q);
msgbuf_init(&msgq);
- msgq.fd = fd;
pfd.fd = fd;
@@ -1106,7 +1105,7 @@ proc_parser(int fd)
}
if (pfd.revents & POLLOUT) {
- if (msgbuf_write(&msgq) == -1) {
+ if (msgbuf_write(fd, &msgq) == -1) {
if (errno == EPIPE)
errx(1, "write: connection closed");
else