mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: parse int to correct bit size (#15257)
This commit is contained in:
@@ -163,7 +163,7 @@ func (c *cache) DecryptingKey(ctx context.Context, id string) (interface{}, erro
|
||||
return nil, ErrInvalidFeature
|
||||
}
|
||||
|
||||
seq, err := strconv.ParseInt(id, 10, 64)
|
||||
seq, err := strconv.ParseInt(id, 10, 32)
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("parse id: %w", err)
|
||||
}
|
||||
@@ -192,7 +192,7 @@ func (c *cache) VerifyingKey(ctx context.Context, id string) (interface{}, error
|
||||
return nil, ErrInvalidFeature
|
||||
}
|
||||
|
||||
seq, err := strconv.ParseInt(id, 10, 64)
|
||||
seq, err := strconv.ParseInt(id, 10, 32)
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("parse id: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user