diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2019-10-03 04:51:16 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2019-10-03 04:51:16 +0000 |
commit | 52750d1e81cfe0c8db5cda0f1bd5ba25572e1f23 (patch) | |
tree | 62dc02a05275088c54c9214ede88ce9e6b6c48dd /usr.sbin | |
parent | cb70430957ae8c4e0c59795a229447660390f2cd (diff) |
fatal() if imsg_flush() call fails in table proc
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/table_proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/table_proc.c b/usr.sbin/smtpd/table_proc.c index 50592a74463..dad041a47c3 100644 --- a/usr.sbin/smtpd/table_proc.c +++ b/usr.sbin/smtpd/table_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_proc.c,v 1.15 2018/12/27 14:23:41 eric Exp $ */ +/* $OpenBSD: table_proc.c,v 1.16 2019/10/03 04:51:15 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -165,7 +165,8 @@ table_proc_close(struct table *table) struct table_proc_priv *priv = table->t_handle; imsg_compose(&priv->ibuf, PROC_TABLE_CLOSE, 0, 0, -1, NULL, 0); - imsg_flush(&priv->ibuf); + if (imsg_flush(&priv->ibuf) == -1) + fatal("imsg_flush"); table->t_handle = NULL; } |