diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:38:16 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:38:16 +0000 |
commit | d54f1ade2567f1c6dc26b339312d1336d564a152 (patch) | |
tree | 74538403c70e3e601a2afbb807050093ec09275e /usr.sbin/dvmrpctl | |
parent | 33a588df978f85e7cafd5cb8ad0c0488cf1d643e (diff) |
Convert simple stuff in usr.sbin over to new imsgbuf_init behaviour
OK tb@
Diffstat (limited to 'usr.sbin/dvmrpctl')
-rw-r--r-- | usr.sbin/dvmrpctl/dvmrpctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpctl/dvmrpctl.c b/usr.sbin/dvmrpctl/dvmrpctl.c index ed56c011f8f..d603fb71d5b 100644 --- a/usr.sbin/dvmrpctl/dvmrpctl.c +++ b/usr.sbin/dvmrpctl/dvmrpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvmrpctl.c,v 1.20 2024/11/21 13:26:25 claudio Exp $ */ +/* $OpenBSD: dvmrpctl.c,v 1.21 2024/11/21 13:38:14 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -100,7 +100,8 @@ main(int argc, char *argv[]) if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL) fatal(NULL); - imsgbuf_init(ibuf, ctl_sock); + if (imsgbuf_init(ibuf, ctl_sock) == -1) + fatal(NULL); done = 0; /* process user request */ |