summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-02-06 22:55:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:51 -0500
commitf7def09a1ec105294b189c0d933f59977a252057 (patch)
treeca1fca6cddeaf49be21dc13e14da02cb98654e5a /source4
parent2b163e64f58d3e5f27b0ff11f70c77a6c764658b (diff)
downloadsamba-f7def09a1ec105294b189c0d933f59977a252057.tar.gz
samba-f7def09a1ec105294b189c0d933f59977a252057.tar.bz2
samba-f7def09a1ec105294b189c0d933f59977a252057.zip
r13372: fixes ... still no joy
(This used to be commit 0e2cca9153619d646b90f32620905ab66b017c6a)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/ldap/ldap_controls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap_controls.c b/source4/libcli/ldap/ldap_controls.c
index 222b4a3358..f85e4843c1 100644
--- a/source4/libcli/ldap/ldap_controls.c
+++ b/source4/libcli/ldap/ldap_controls.c
@@ -755,6 +755,10 @@ static BOOL encode_vlv_request(void *mem_ctx, void *in, DATA_BLOB *out)
}
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 @@ static BOOL encode_vlv_request(void *mem_ctx, void *in, DATA_BLOB *out)
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)) {