- Fix to use correct type for label count in ipdnametoaddr rpz routine.

This commit is contained in:
W.C.A. Wijngaards 2021-01-28 09:14:19 +01:00
parent cb55b5906a
commit 3a19ceaae6
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- Annotate that we ignore the return value of if_indextoname. - Annotate that we ignore the return value of if_indextoname.
- Fix to use correct type for label count in rpz routine. - Fix to use correct type for label count in rpz routine.
- Fix empty clause warning in config_file nsid parse. - Fix empty clause warning in config_file nsid parse.
- Fix to use correct type for label count in ipdnametoaddr rpz routine.
26 January 2022: George 26 January 2022: George
- Merge PR #408 from fobser: Prevent a few more yacc clashes. - Merge PR #408 from fobser: Prevent a few more yacc clashes.

View file

@ -321,7 +321,7 @@ static int ipdnametoaddr(uint8_t* dname, size_t dnamelen,
struct sockaddr_storage* addr, socklen_t* addrlen, int* af) struct sockaddr_storage* addr, socklen_t* addrlen, int* af)
{ {
uint8_t* ia; uint8_t* ia;
size_t dnamelabs = dname_count_labels(dname); int dnamelabs = dname_count_labels(dname);
uint8_t lablen; uint8_t lablen;
char* e = NULL; char* e = NULL;
int z = 0; int z = 0;