Fix MessageID bug due to wrong ASN.1 BER encoding of integers and length #9

Merged
quentin merged 5 commits from bug/message-id into main 2021-09-16 13:04:46 +00:00
Showing only changes of commit 2a844bd559 - Show all commits

View file

@ -206,7 +206,10 @@ func (c *client) close() {
}
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.Tracef(">>> [%d] %#v", c.Numero, m)