diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2005-08-08 14:33:47 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2005-08-08 14:33:47 +0000 |
commit | 3cc71392a6bb4140f1ff654b2fe6f4d4a6812862 (patch) | |
tree | ebc161552efbfe247a9b0a9d0d2b4db9e246ae86 /sbin/dhclient/privsep.c | |
parent | 043b54ccf7771ecd394b1a9fe6a4a4736fd3e8c6 (diff) |
re-add write() error check in buf_close(). ok henning@
Diffstat (limited to 'sbin/dhclient/privsep.c')
-rw-r--r-- | sbin/dhclient/privsep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c index ab018063c7d..e3ccdf64ecf 100644 --- a/sbin/dhclient/privsep.c +++ b/sbin/dhclient/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.10 2005/08/07 01:35:11 krw Exp $ */ +/* $OpenBSD: privsep.c,v 1.11 2005/08/08 14:33:46 moritz Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -64,6 +64,9 @@ buf_close(int sock, struct buf *buf) } while (n == -1 && (errno == EAGAIN || errno == EINTR)); + if (n == -1) + error("buf_close: %m"); + free(buf->buf); free(buf); } |