diff options
Diffstat (limited to 'ber')
-rw-r--r-- | ber/dump.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ber/dump.go b/ber/dump.go index c9c4d9c..e0edf94 100644 --- a/ber/dump.go +++ b/ber/dump.go @@ -34,9 +34,10 @@ func (s *state) dump(indent int) (ret string) { ret += fmt.Sprintf("%3d: %*s%v: ", s.Len(), 2*indent, "", h) switch h.Kind { case kindPrimitive: - if h.Class == classUniversal { + switch h.Class { + case classUniversal: ret += s.universal(h) - } else { + default: ret += fmt.Sprintln(s.next()) } case kindConstructed: |