summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--conn.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/conn.go b/conn.go
index 862b5ff..ce0370d 100644
--- a/conn.go
+++ b/conn.go
@@ -315,11 +315,6 @@ func (l *Conn) Ping() error {
}
defer l.finishMessage(messageID)
- packet = <-channel
- if packet == nil {
- return NewError(ErrorNetwork, errors.New("ldap: could not retrieve response"))
- }
-
if l.Debug {
if err := addLDAPDescriptions(packet); err != nil {
return err
@@ -327,11 +322,6 @@ func (l *Conn) Ping() error {
ber.PrintPacket(packet)
}
- resultCode, resultDescription := getLDAPResultCode(packet)
- if resultCode != 0 {
- return NewError(resultCode, errors.New(resultDescription))
- }
-
return nil
}