mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Protect against empty expires field in Expire.
This commit is contained in:
parent
9e7231ee6e
commit
53481fde5e
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ func (state *state) Expire() error {
|
|||
|
||||
modified := false
|
||||
for k, t := range state.tokens {
|
||||
if t.Expires.Before(cutoff) {
|
||||
if t.Expires != nil && t.Expires.Before(cutoff) {
|
||||
delete(state.tokens, k)
|
||||
modified = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue