Author: gd Date: 2006-09-06 13:10:20 +0000 (Wed, 06 Sep 2006) New Revision: 18174
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18174 Log: Do not return "success" when we failed to write in the CLDAP code. Guenther Modified: branches/SAMBA_3_0/source/libads/cldap.c branches/SAMBA_3_0_23/source/libads/cldap.c Changeset: Modified: branches/SAMBA_3_0/source/libads/cldap.c =================================================================== --- branches/SAMBA_3_0/source/libads/cldap.c 2006-09-06 12:59:44 UTC (rev 18173) +++ branches/SAMBA_3_0/source/libads/cldap.c 2006-09-06 13:10:20 UTC (rev 18174) @@ -160,6 +160,7 @@ 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); Modified: branches/SAMBA_3_0_23/source/libads/cldap.c =================================================================== --- branches/SAMBA_3_0_23/source/libads/cldap.c 2006-09-06 12:59:44 UTC (rev 18173) +++ branches/SAMBA_3_0_23/source/libads/cldap.c 2006-09-06 13:10:20 UTC (rev 18174) @@ -160,6 +160,7 @@ 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);
