modules/ans1-ber: fix LDAP UTF8 string decoding for #916
This commit is contained in:
parent
9420eecb87
commit
3a44143b81
1 changed files with 4 additions and 4 deletions
|
@ -256,11 +256,11 @@ func ReadPacket(reader io.Reader) (*Packet, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func DecodeString(data []byte) (ret string) {
|
func DecodeString(data []byte) (ret string) {
|
||||||
for _, c := range data {
|
// for _, c := range data {
|
||||||
ret += fmt.Sprintf("%c", c)
|
// ret += fmt.Sprintf("%c", c)
|
||||||
}
|
// }
|
||||||
|
|
||||||
return
|
return string(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func DecodeInteger(data []byte) (ret uint64) {
|
func DecodeInteger(data []byte) (ret uint64) {
|
||||||
|
|
Reference in a new issue