mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-04 22:09:36 -05:00
- Fix empty clause warning in config_file nsid parse.
This commit is contained in:
parent
9e6f8567de
commit
cb55b5906a
2 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue