summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-11-30 10:55:30 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2021-11-30 20:55:17 +0100
commite9ae548078135f047b855177906040d86d75ee08 (patch)
tree7c97b6e4e4d14e9fd6fb6f5aec5989a50ba5c360
parentd76c39b996703f6b0192225b277ce0c5ac79dca4 (diff)
db: add missing `break` to switch case
When formatting DB queries, if we get a input key of type `RAW`, we log a message indicating that `RAW` is unsupported, then fall through to the default case, which logs another message that the key type is unknown. Add the missing `break` statement to prevent the fall-through. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--util/db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/db.c b/util/db.c
index c9aec41..f071114 100644
--- a/util/db.c
+++ b/util/db.c
@@ -388,6 +388,7 @@ static void __format_query_db(struct ulogd_pluginstance *upi, char *start)
case ULOGD_RET_RAW:
ulogd_log(ULOGD_NOTICE,
"Unsupported RAW type is unsupported in SQL output");
+ break;
default:
ulogd_log(ULOGD_NOTICE,
"unknown type %d for %s\n",