]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix empty clause warning in config_file nsid parse.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:11:46 +0000 (09:11 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:11:46 +0000 (09:11 +0100)
doc/Changelog
util/config_file.c

index f6d32249b19403ae0f6a2ec67e3539c7370b24cf..8e6794136ca25aaeb2100ce1ee742483a26f88a7 100644 (file)
@@ -1,6 +1,7 @@
 28 January 2022: Wouter
        - Annotate that we ignore the return value of if_indextoname.
        - Fix to use correct type for label count in rpz routine.
+       - Fix empty clause warning in config_file nsid parse.
 
 26 January 2022: George
        - Merge PR #408 from fobser: Prevent a few more yacc clashes.
index 28816f74711be7a5157940af088dcd8efb950a61..4d87dee9b496c6eb2aa81899f12c02be1db644c8 100644 (file)
@@ -2064,8 +2064,9 @@ uint8_t* cfg_parse_nsid(const char* str, uint16_t* nsid_len)
                if ((nsid = (uint8_t *)strdup(str + 6)))
                        *nsid_len = strlen(str + 6);
 
-       } else if (strlen(str) % 2) 
+       } else if (strlen(str) % 2) {
                ; /* hex string has even number of characters */
+       }
 
        else if (*str && (nsid = calloc(1, strlen(str) / 2))) {
                const char *ch;