]> git.ipfire.org Git - people/ms/suricata.git/commit
src: use FatalError whenever possible
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 9 Jul 2020 09:01:01 +0000 (14:31 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 11 Jul 2020 06:37:07 +0000 (08:37 +0200)
commit6f7d8e50c8000fd4334649a47310367a704e1157
tree90248cd55631ff96bd308761752da896ef61576b
parent901fbae7b9e7334218e9dc40d3437a1d7e4be212
src: use FatalError whenever possible

Replaces all patterns of SCLogError() followed by exit() with
FatalError(). Cocci script to do this:

@@
constant C;
constant char[] msg;
@@

- SCLogError(C,
+ FatalError(SC_ERR_FATAL,
  msg);
- exit(EXIT_FAILURE);

Closes redmine ticket 3188.
71 files changed:
src/app-layer-detect-proto.c
src/app-layer-htp.c
src/app-layer-parser.c
src/conf-yaml-loader.c
src/conf.c
src/counters.c
src/defrag-config.c
src/defrag-hash.c
src/defrag.c
src/detect-engine-analyzer.c
src/detect-engine-build.c
src/detect-engine-iponly.c
src/detect-engine-mpm.c
src/detect-engine-sigorder.c
src/detect-engine-tag.c
src/detect-engine-threshold.c
src/detect-parse.c
src/flow.c
src/host-bit.c
src/host.c
src/ippair-bit.c
src/ippair.c
src/log-pcap.c
src/output-json.c
src/output-lua.c
src/output-tx.c
src/output.c
src/reputation.c
src/runmode-af-packet.c
src/runmode-erf-dag.c
src/runmode-erf-file.c
src/runmode-napatech.c
src/runmode-netmap.c
src/runmode-nflog.c
src/runmode-pcap-file.c
src/runmode-pcap.c
src/runmode-pfring.c
src/runmode-unittests.c
src/runmodes.c
src/source-erf-dag.c
src/source-napatech.c
src/source-nflog.c
src/source-nfq.c
src/stream-tcp.c
src/suricata.c
src/tm-threads.c
src/tmqh-packetpool.c
src/unix-manager.c
src/util-affinity.c
src/util-daemon.c
src/util-debug-filters.c
src/util-debug.c
src/util-host-os-info.c
src/util-ip.c
src/util-log-redis.c
src/util-logopenfile.c
src/util-mpm-ac-bs.c
src/util-mpm-ac-ks.c
src/util-mpm-ac.c
src/util-mpm-hs.c
src/util-mpm.c
src/util-napatech.c
src/util-privs.c
src/util-profiling-keywords.c
src/util-profiling-prefilter.c
src/util-profiling-rulegroups.c
src/util-profiling-rules.c
src/util-profiling.c
src/util-radix-tree.c
src/util-spm-bm.c
src/util-thash.c