]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
db: add missing `break` to switch case
authorJeremy Sowden <jeremy@azazel.net>
Tue, 30 Nov 2021 10:55:30 +0000 (10:55 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Nov 2021 19:55:17 +0000 (20:55 +0100)
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>
util/db.c

index c9aec418e9ed20e76a6a28987e0b0b5b8cd8c957..f0711146867fb4603fc124d77dc86f4f87b735cc 100644 (file)
--- 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",