git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b163e6
)
r13372: fixes ... still no joy
author
Simo Sorce
<idra@samba.org>
Mon, 6 Feb 2006 22:55:34 +0000
(22:55 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:51:51 +0000
(13:51 -0500)
(This used to be commit
0e2cca9153619d646b90f32620905ab66b017c6a
)
source4/libcli/ldap/ldap_controls.c
patch
|
blob
|
history
diff --git
a/source4/libcli/ldap/ldap_controls.c
b/source4/libcli/ldap/ldap_controls.c
index 222b4a3358e0b27fda1224cb54c3e637b402d0c7..f85e4843c1ad2bd3fade9ba444f6fe1796770a21 100644
(file)
--- 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)) {