aboutsummaryrefslogtreecommitdiff
path: root/ber/new/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/new/common.go')
-rw-r--r--ber/new/common.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ber/new/common.go b/ber/new/common.go
index feb257e..b5884ae 100644
--- a/ber/new/common.go
+++ b/ber/new/common.go
@@ -21,7 +21,8 @@ func (s *state) subState() *state {
}
func (s *state) next() []byte {
- return s.Next(s.unmarshalLen())
+ l := s.unmarshalLen()
+ return s.Next(l)
}
type OID []int