]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/port: remove BUG_ON in favor of PORT_ER
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 21 Nov 2023 08:23:09 +0000 (13:53 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Dec 2023 10:33:09 +0000 (11:33 +0100)
commit8960a86f4fcc2e306fbf4de9a2b4550a7e8a35d3
tree20248e100bc02fd53ab63a54e97bd2fd76915e2b
parentd8a887e518bde0a146bad4062f668bd30e4839c8
detect/port: remove BUG_ON in favor of PORT_ER

Either the BUG_ON condition would hit or PORT_ER. Prefer to return error
in case of an error as the fn expects that.
src/detect-engine-port.c