mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
prevent crash resolving /proc/self/exe
This commit is contained in:
parent
45212db908
commit
7557faf3a6
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ func (p *Process) CleanPath() {
|
|||
}
|
||||
// link read failed
|
||||
|
||||
if p.Args[0] != "" {
|
||||
if len(p.Args) > 0 && p.Args[0] != "" {
|
||||
p.Path = p.Args[0]
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue