summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-06 13:10:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:43:30 -0500
commit4bc83e60de829f57f4587b91d5da51efa49f26f4 (patch)
tree3c1a4afe853cf87c5ed56f1a006a89496c5c061a
parent5a87bbd48a30a3bff8ab70b44b76fed220b098a9 (diff)
downloadsamba-4bc83e60de829f57f4587b91d5da51efa49f26f4.tar.gz
samba-4bc83e60de829f57f4587b91d5da51efa49f26f4.tar.bz2
samba-4bc83e60de829f57f4587b91d5da51efa49f26f4.zip
r18174: Do not return "success" when we failed to write in the CLDAP code.
Guenther (This used to be commit 1fe4724f57f4f25ed486240cb1e741da60f0c997)
-rw-r--r--source3/libads/cldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c
index 5f7f1b179f..81901d2fd3 100644
--- a/source3/libads/cldap.c
+++ b/source3/libads/cldap.c
@@ -160,6 +160,7 @@ static int send_cldap_netlogon(int sock, const char *domain,
if (write(sock, data.data, data.length) != (ssize_t)data.length) {
DEBUG(2,("failed to send cldap query (%s)\n", strerror(errno)));
+ return -1;
}
asn1_free(&data);