aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldapserver/client.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldapserver/client.go b/ldapserver/client.go
index c9a6f2c..339ae98 100644
--- a/ldapserver/client.go
+++ b/ldapserver/client.go
@@ -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)