aboutsummaryrefslogtreecommitdiff
path: root/ber/new/class.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/new/class.go')
-rw-r--r--ber/new/class.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ber/new/class.go b/ber/new/class.go
index f0bdff8..094c804 100644
--- a/ber/new/class.go
+++ b/ber/new/class.go
@@ -128,7 +128,7 @@ func (s *state) ident() Header {
func (h Header) String() string {
f := "%v %v %v"
- if h.Kind != kindPrimitive {
+ if h.Class != classUniversal {
f = "%v %v %d"
}
return fmt.Sprintf(f, h.Class, h.Kind, h.Tag)