From a66cad0eebc6cfcfc73ecbc62e9deab521910a25 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 23 Apr 2018 18:07:32 +0200 Subject: [PATCH] [client.keyset] MigrationCode(uint) fixed reference (was by value) --- src/git.xdrm.io/schastsp/client/keyset/keyset.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }