diff options
-rw-r--r-- | conn.go | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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 } |