Changeset 745 for trunk/server/libcli/ldap/ldap_message.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/libcli/ldap/ldap_message.c
r414 r745 168 168 169 169 for (i = 0; handlers[i].oid != NULL; i++) { 170 if (!ctrl->oid) { 171 /* not encoding this control, the OID has been 172 * set to NULL indicating it isn't really 173 * here */ 174 return true; 175 } 170 176 if (strcmp(handlers[i].oid, ctrl->oid) == 0) { 171 177 if (!handlers[i].encode) { … … 435 441 case LDAP_TAG_UnbindRequest: { 436 442 /* struct ldap_UnbindRequest *r = &msg->r.UnbindRequest; */ 443 asn1_push_tag(data, ASN1_APPLICATION_SIMPLE(msg->type)); 444 asn1_pop_tag(data); 437 445 break; 438 446 } … … 669 677 control_handlers, 670 678 msg->controls[i])) { 679 DEBUG(1,("Unable to encode control %s\n", 680 msg->controls[i]->oid)); 671 681 return false; 672 682 } … … 1608 1618 NTSTATUS ldap_full_packet(void *private_data, DATA_BLOB blob, size_t *packet_size) 1609 1619 { 1610 return asn1_full_tag(blob, ASN1_SEQUENCE(0), packet_size); 1611 } 1620 if (blob.length < 6) { 1621 /* 1622 * We need at least 6 bytes to workout the length 1623 * of the pdu. 1624 */ 1625 return STATUS_MORE_ENTRIES; 1626 } 1627 return asn1_peek_full_tag(blob, ASN1_SEQUENCE(0), packet_size); 1628 }
Note:
See TracChangeset
for help on using the changeset viewer.