diff options
author | tmfkams <tmfkams@gmail.com> | 2014-02-02 19:00:45 +0100 |
---|---|---|
committer | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 21:57:59 +0100 |
commit | 16e1575c86d09a0495b994341e9541a9fdfc6761 (patch) | |
tree | c3f1d00c0521f9857a3e81932ae10868b5596b3d /ldap.go | |
parent | SSL/TLS with certificates (diff) | |
download | ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.gz ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.bz2 ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.lz ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.xz ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.zst ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.zip |
Diffstat (limited to 'ldap.go')
-rw-r--r-- | ldap.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -290,9 +290,9 @@ func NewError(ResultCode uint8, Err error) *Error { return &Error{ResultCode: ResultCode, Err: Err} } -func getLDAPResultCode(p *ber.Packet) (code uint8, description string) { - if len(p.Children) >= 2 { - response := p.Children[1] +func getLDAPResultCode(packet *ber.Packet) (code uint8, description string) { + if len(packet.Children) >= 2 { + response := packet.Children[1] if response.ClassType == ber.ClassApplication && response.TagType == ber.TypeConstructed && len(response.Children) == 3 { code = uint8(response.Children[0].Value.(uint64)) description = response.Children[2].Value.(string) |