From 3f4502990aed2b929f29ded559dd60c6d35c3fb6 Mon Sep 17 00:00:00 2001 From: Ingo Oeser Date: Thu, 3 Aug 2017 01:52:24 +0200 Subject: [PATCH] fix bad error code By providing a unique error code instead of a format specifier without using an error formatting function. --- session/sess_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/sess_utils.go b/session/sess_utils.go index d7db5ba8..2e3376c7 100644 --- a/session/sess_utils.go +++ b/session/sess_utils.go @@ -149,7 +149,7 @@ func decodeCookie(block cipher.Block, hashKey, name, value string, gcmaxlifetime // 2. Verify MAC. Value is "date|value|mac". parts := bytes.SplitN(b, []byte("|"), 3) if len(parts) != 3 { - return nil, errors.New("Decode: invalid value %v") + return nil, errors.New("Decode: invalid value format") } b = append([]byte(name+"|"), b[:len(b)-len(parts[2])]...)