summaryrefslogtreecommitdiff
path: root/libcli/ldap
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-27 06:46:33 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-27 08:24:35 +0200
commit9d4df79080e43ca787b9c7f598aa5327b47e83f2 (patch)
tree16aee0ed4a03e112ba1045a66ee40a118494fc17 /libcli/ldap
parentff9549192599ef5b88fade7e95fa9a4ccb9232a6 (diff)
downloadsamba-9d4df79080e43ca787b9c7f598aa5327b47e83f2.tar.gz
samba-9d4df79080e43ca787b9c7f598aa5327b47e83f2.tar.bz2
samba-9d4df79080e43ca787b9c7f598aa5327b47e83f2.zip
libcli/ldap: correctly marshall LDAP Unbind PDUs
metze
Diffstat (limited to 'libcli/ldap')
-rw-r--r--libcli/ldap/ldap_message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c
index 394151879c..e5b94b8df1 100644
--- a/libcli/ldap/ldap_message.c
+++ b/libcli/ldap/ldap_message.c
@@ -434,6 +434,8 @@ _PUBLIC_ bool ldap_encode(struct ldap_message *msg,
}
case LDAP_TAG_UnbindRequest: {
/* struct ldap_UnbindRequest *r = &msg->r.UnbindRequest; */
+ asn1_push_tag(data, ASN1_APPLICATION_SIMPLE(msg->type));
+ asn1_pop_tag(data);
break;
}
case LDAP_TAG_SearchRequest: {