summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapctl/ldapctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldapctl/ldapctl.c')
-rw-r--r--usr.sbin/ldapctl/ldapctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c
index f6af96a52fd..5c7b52fd6df 100644
--- a/usr.sbin/ldapctl/ldapctl.c
+++ b/usr.sbin/ldapctl/ldapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapctl.c,v 1.4 2010/06/30 21:37:30 martinh Exp $ */
+/* $OpenBSD: ldapctl.c,v 1.5 2013/11/14 20:48:52 deraadt Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -331,7 +331,7 @@ main(int argc, char *argv[])
}
while (ibuf.w.queued)
- if (msgbuf_write(&ibuf.w) < 0)
+ if (msgbuf_write(&ibuf.w) <= 0 && errno != EAGAIN)
err(1, "write error");
while (!done) {