svn commit: samba r13372 - in branches/SAMBA_4_0/source/libcli/ldap: .

idra at samba.org idra at samba.org
Mon Feb 6 22:55:34 GMT 2006


Author: idra
Date: 2006-02-06 22:55:34 +0000 (Mon, 06 Feb 2006)
New Revision: 13372

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

Log:

fixes ... still no joy


Modified:
   branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c	2006-02-06 22:19:30 UTC (rev 13371)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c	2006-02-06 22:55:34 UTC (rev 13372)
@@ -755,6 +755,10 @@
 	}
 
 	if (lvrc->type == 0) {
+		if (!asn1_push_tag(&data, ASN1_SEQUENCE(0))) {
+			return False;
+		}
+		
 		if (!asn1_write_Integer(&data, lvrc->match.byOffset.offset)) {
 			return False;
 		}
@@ -762,6 +766,10 @@
 		if (!asn1_write_Integer(&data, lvrc->match.byOffset.contentCount)) {
 			return False;
 		}
+
+		if (!asn1_pop_tag(&data)) {
+			return False;
+		}
 	} else {
 		
 		if (!asn1_write_OctetString(&data, lvrc->match.gtOrEq.value, lvrc->match.gtOrEq.value_len)) {



More information about the samba-cvs mailing list