r18174: Do not return "success" when we failed to write in the CLDAP code.
authorGünther Deschner <gd@samba.org>
Wed, 6 Sep 2006 13:10:20 +0000 (13:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:43:30 +0000 (11:43 -0500)
Guenther
(This used to be commit 1fe4724f57f4f25ed486240cb1e741da60f0c997)

source3/libads/cldap.c

index 5f7f1b179fbf5a78b149c3a1bd59df1dd0c54e14..81901d2fd3e4db595e0293e0a5aeb89a8761204a 100644 (file)
@@ -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);