From: Günther Deschner Date: Wed, 6 Sep 2006 13:10:20 +0000 (+0000) Subject: r18174: Do not return "success" when we failed to write in the CLDAP code. X-Git-Tag: samba-4.0.0alpha6~801^2~7707 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc83e60de829f57f4587b91d5da51efa49f26f4;p=thirdparty%2Fsamba.git r18174: Do not return "success" when we failed to write in the CLDAP code. Guenther (This used to be commit 1fe4724f57f4f25ed486240cb1e741da60f0c997) --- diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c index 5f7f1b179fb..81901d2fd3e 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);