aboutsummaryrefslogtreecommitdiff
path: root/ber/packet.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/packet.go')
-rw-r--r--ber/packet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ber/packet.go b/ber/packet.go
index 1a9465f..f244c4e 100644
--- a/ber/packet.go
+++ b/ber/packet.go
@@ -4,7 +4,7 @@ func Split(b []byte) (c Class, k Kind, t Tag, l int, v []byte, r []byte) {
var n int
c, k, t, n = Ident(b)
b = b[n:]
- l, n = Length(b)
+ l, n = UnmarshalLen(b)
b = b[n:]
v = b[:l]
r = b[l:]