crowdsecurity / lua-cs-bouncer

MIT License
11 stars 13 forks source link

[Bug] This function can return nil #48

Closed LaurenceJJones closed 1 year ago

LaurenceJJones commented 1 year ago

https://github.com/crowdsecurity/lua-cs-bouncer/blob/f44ea23d5e369c6991372bc5ec0f2a1bd092e990/lib/crowdsec.lua#L153

We fail to check if ip_network_address is nil as it can be a remediation other than range or ip.

The nil can happen for the parseipv6 function.