diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2021-11-30 10:55:30 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-30 20:55:17 +0100 |
commit | e9ae548078135f047b855177906040d86d75ee08 (patch) | |
tree | 7c97b6e4e4d14e9fd6fb6f5aec5989a50ba5c360 | |
parent | d76c39b996703f6b0192225b277ce0c5ac79dca4 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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", |