From 4bc83e60de829f57f4587b91d5da51efa49f26f4 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 6 Sep 2006 13:10:20 +0000 Subject: r18174: Do not return "success" when we failed to write in the CLDAP code. Guenther (This used to be commit 1fe4724f57f4f25ed486240cb1e741da60f0c997) --- source3/libads/cldap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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); -- cgit