diff options
author | unai.avila <unai.avila@fonyou.com> | 2014-09-04 11:32:10 +0200 |
---|---|---|
committer | unai.avila <unai.avila@fonyou.com> | 2014-09-04 11:32:10 +0200 |
commit | 492fd8f904034d84f406b496211e3affade8aa9a (patch) | |
tree | de415aeb1fb8693c8d076351a7fd86bb6e1ec6ff | |
parent | Add ping method (diff) | |
download | ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.gz ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.bz2 ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.lz ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.xz ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.zst ldap-492fd8f904034d84f406b496211e3affade8aa9a.zip |
-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 } |