Skip to content
Snippets Groups Projects
Commit f8c0ebf3 authored by capossele's avatar capossele
Browse files

:bug: fix ExpirationTime Unmarshal

parent dfd97b64
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,11 @@ func Unmarshal(marshaledSalt []byte) (*Salt, error) {
}
salt.SetBytes(marshaledSalt[SALT_BYTES_START:SALT_BYTES_END])
expTime := salt.GetExpirationTime()
var expTime time.Time
if err := expTime.UnmarshalBinary(marshaledSalt[SALT_TIME_START:SALT_TIME_END]); err != nil {
return nil, err
}
salt.SetExpirationTime(expTime)
return salt, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment