summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/dhclient/privsep.c5
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);
}