diff --git a/src/git.xdrm.io/schastsp/client/keyset/keyset.go b/src/git.xdrm.io/schastsp/client/keyset/keyset.go index 59f8179..6ac697a 100644 --- a/src/git.xdrm.io/schastsp/client/keyset/keyset.go +++ b/src/git.xdrm.io/schastsp/client/keyset/keyset.go @@ -196,10 +196,10 @@ func (s *T) Fetch(reader io.Reader) error { * @return mcode Migration code * ---------------------------------------------------------*/ -func (s T) MigrationCode(optional ...uint8) uint8 { +func (s *T) MigrationCode(optional ...uint8) uint8 { /* (1) If no valid code given -> return current one */ - if len(optional) < 1 || optional[0] > 3 { + if len(optional) < 1 || optional[0] > 2 { return s.mcode }