Skip to content

Commit

Permalink
Fix out of range error (#890)
Browse files Browse the repository at this point in the history
Handle case of no IpAddress

Signed-off-by: Petr Fedchenkov <[email protected]>
  • Loading branch information
giggsoff authored Sep 28, 2023
1 parent 0187c3c commit 8610724
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/eve/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ func (ctx *State) processApplicationsByInfo(im *info.ZInfoMsg) {
appStateObj.infoTime = im.AtTimeStamp.AsTime()
case info.ZInfoTypes_ZiNetworkInstance: //try to find ips from NetworkInstances
for _, el := range im.GetNiinfo().IpAssignments {
// nothing to show if no IpAddress received
if len(el.IpAddress) == 0 {
continue
}
for _, appStateObj := range ctx.applications {
for ind, mac := range appStateObj.Macs {
if mac == el.MacAddress {
Expand Down

0 comments on commit 8610724

Please sign in to comment.