Commit 553e190
committed
fix: guard against empty firewall policy results to prevent panic
If the FortiOS API returns an empty array (no VDOMs or permission
error), accessing ps4[0] panics with index out of range.
Signed-off-by: Aprazors <Aprazors@gmail.com>1 parent b3a54c2 commit 553e190
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
0 commit comments