1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

ldapd is also different to other imsg daemons.

OK tb@
This commit is contained in:
claudio 2024-11-21 13:39:07 +00:00
parent 6676295ff1
commit 81e9819965

View File

@ -1,4 +1,4 @@
/* $OpenBSD: imsgev.c,v 1.12 2024/11/21 13:25:56 claudio Exp $ */
/* $OpenBSD: imsgev.c,v 1.13 2024/11/21 13:39:07 claudio Exp $ */
/*
* Copyright (c) 2009 Eric Faurot <eric@openbsd.org>
@ -27,6 +27,7 @@
#include <unistd.h>
#include "imsgev.h"
#include "log.h"
void imsgev_add(struct imsgev *);
void imsgev_dispatch(int, short, void *);
@ -37,7 +38,9 @@ imsgev_init(struct imsgev *iev, int fd, void *data,
void (*callback)(struct imsgev *, int, struct imsg *),
void (*needfd)(struct imsgev *))
{
imsgbuf_init(&iev->ibuf, fd);
if (imsgbuf_init(&iev->ibuf, fd) == -1)
fatal("imsgbuf_init");
imsgbuf_allow_fdpass(&iev->ibuf);
iev->terminate = 0;
iev->data = data;