summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-22 14:29:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:45 -0500
commit31d6d8c45735bef52a14b922667a036245df8061 (patch)
tree20d4c0325719856e6bf71109fcee98fb417a6d78 /source4/libcli
parent3d8e7f9cf433056b89365215079e37bd3313158e (diff)
downloadsamba-31d6d8c45735bef52a14b922667a036245df8061.tar.gz
samba-31d6d8c45735bef52a14b922667a036245df8061.tar.bz2
samba-31d6d8c45735bef52a14b922667a036245df8061.zip
r21501: ugly but the windows 2000 mmc deturns decoding error without this
metze (This used to be commit f17da75754f8cc79b60e04b54a4bc99191e71ff3)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c
index 5a7174b41d..bdcea0962d 100644
--- a/source4/libcli/ldap/ldap.c
+++ b/source4/libcli/ldap/ldap.c
@@ -237,6 +237,10 @@ BOOL ldap_encode(struct ldap_message *msg, DATA_BLOB *result, TALLOC_CTX *mem_ct
ldap_encode_response(&data, &r->response);
if (r->SASL.secblob) {
asn1_write_ContextSimple(&data, 7, r->SASL.secblob);
+ } else {
+ /* ugly but the windows 2000 mmc deturns decoding error without this */
+ DATA_BLOB zero = data_blob(NULL, 0);
+ asn1_write_ContextSimple(&data, 7, &zero);
}
asn1_pop_tag(&data);
break;