]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing FALLTHROUGH macros in a switch statement
authorAram Sargsyan <aram@isc.org>
Thu, 28 Apr 2022 14:22:13 +0000 (14:22 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Fri, 29 Apr 2022 07:13:53 +0000 (07:13 +0000)
dzl_ldap_driver.c was missing some FALLTHROUGH macros in a switch
statement resulting in compiler warnings and a failed build when
configured with `--with-dlz-ldap` option.

contrib/dlz/drivers/dlz_ldap_driver.c

index b6c173dc9490a5bca7801a57e85a7fb5a609b0b8..072d285e98cda46894aa542c00221fc5ca5ec8ee 100644 (file)
@@ -957,11 +957,13 @@ dlz_ldap_create(const char *dlzname, unsigned int argc, char *argv[],
                if (result != ISC_R_SUCCESS) {
                        return (result);
                }
+               FALLTHROUGH;
        case 11:
                result = dlz_ldap_checkURL(argv[10], 3, "all nodes");
                if (result != ISC_R_SUCCESS) {
                        return (result);
                }
+               FALLTHROUGH;
        case 10:
                if (strlen(argv[9]) > 0) {
                        result = dlz_ldap_checkURL(argv[9], 3, "authority");
@@ -969,6 +971,7 @@ dlz_ldap_create(const char *dlzname, unsigned int argc, char *argv[],
                                return (result);
                        }
                }
+               FALLTHROUGH;
        case 9:
                result = dlz_ldap_checkURL(argv[8], 3, "lookup");
                if (result != ISC_R_SUCCESS) {