mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 02:18:25 +00:00
security: fix AliasCheck panic (#21339)
* security: fix AliasCheck panic * add changelog
This commit is contained in:
parent
6302ef31fc
commit
7a19d2e7a4
3
.changelog/21339.txt
Normal file
3
.changelog/21339.txt
Normal file
@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
core: Fix panic runtime error on AliasCheck
|
||||
```
|
@ -144,6 +144,9 @@ func (c *CheckAlias) runLocal(stopCh chan struct{}) {
|
||||
type CheckIfServiceIDExists func(*structs.ServiceID) bool
|
||||
|
||||
func (c *CheckAlias) checkServiceExistsOnRemoteServer(serviceID *structs.ServiceID) (bool, error) {
|
||||
if serviceID == nil {
|
||||
return false, fmt.Errorf("serviceID cannot be nil")
|
||||
}
|
||||
args := c.RPCReq
|
||||
args.Node = c.Node
|
||||
args.AllowStale = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user