libcli/ldap: correctly marshall LDAP Unbind PDUs
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Sep 2010 04:46:33 +0000 (06:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 27 Sep 2010 06:24:35 +0000 (08:24 +0200)
metze

libcli/ldap/ldap_message.c

index 394151879c99e2d65f3ce73d684f32b9c80788c9..e5b94b8df122d839ace939fa2eb9542b9feb4b97 100644 (file)
@@ -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: {