Fix MessageID bug due to wrong ASN.1 BER encoding of integers and length #9
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ func (c *client) close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *client) writeMessage(m *ldap.LDAPMessage) {
|
func (c *client) writeMessage(m *ldap.LDAPMessage) {
|
||||||
data, _ := m.Write()
|
data, err := m.Write()
|
||||||
|
if err != nil {
|
||||||
|
Logger.Errorf("bottin: unable to marshal response message: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
//Logger.Printf(">>> %d - %s - hex=%x", c.Numero, m.ProtocolOpName(), data.Bytes())
|
//Logger.Printf(">>> %d - %s - hex=%x", c.Numero, m.ProtocolOpName(), data.Bytes())
|
||||||
Logger.Tracef(">>> [%d] %#v", c.Numero, m)
|
Logger.Tracef(">>> [%d] %#v", c.Numero, m)
|
||||||
|
|
Loading…
Reference in a new issue