svn commit: samba r3762 - in branches/SAMBA_4_0/source/ldap_server: .

metze at samba.org metze at samba.org
Mon Nov 15 17:27:08 GMT 2004


Author: metze
Date: 2004-11-15 17:27:07 +0000 (Mon, 15 Nov 2004)
New Revision: 3762

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3762

Log:
- only load the readed bytes into the input buffer

- fix compiler warnings with gcc-4.0

metze

Modified:
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c	2004-11-15 17:20:58 UTC (rev 3761)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c	2004-11-15 17:27:07 UTC (rev 3762)
@@ -173,6 +173,7 @@
 		talloc_free(tmp_blob.data);
 		return False;
 	}
+	tmp_blob.length = nread;
 
 	ret = ldapsrv_append_to_buf(buf, tmp_blob.data, tmp_blob.length);
 
@@ -188,7 +189,7 @@
 	DATA_BLOB creds;
 	BOOL ret;
 	uint8_t *buf;
-	int buf_length, sasl_length;
+	size_t buf_length, sasl_length;
 	struct socket_context *sock = conn->connection->socket;
 	TALLOC_CTX *mem_ctx;
 	size_t nread;
@@ -445,7 +446,7 @@
 {
 	struct ldapsrv_connection *ldap_conn = conn->private_data;
 	uint8_t *buf;
-	int buf_length, msg_length;
+	size_t buf_length, msg_length;
 	DATA_BLOB blob;
 	struct asn1_data data;
 	struct ldapsrv_call *call;



More information about the samba-cvs mailing list