r21511: this seems to be the nicer fix for the problem with
[abartlet/samba.git/.git] / source4 / libcli / ldap / ldap.c
index bdcea0962da4856ec626ff224c7e78e26e1e61b2..5a7174b41dbadc095533517ad27484b654351f9e 100644 (file)
@@ -237,10 +237,6 @@ 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;