mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-23 18:24:58 +02:00
- Fix compile error in listen_dnsport on Android.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- Merge #449 from orbea: build: Add missing linker flags.
|
||||
- iana portlist update.
|
||||
- Comment out nonworking OSX and IOS travis tests, vm fails to start.
|
||||
- Fix compile error in listen_dnsport on Android.
|
||||
|
||||
19 March 2021: Wouter
|
||||
- Fix for #447: squelch connection refused tcp connection failures
|
||||
|
||||
@@ -1579,7 +1579,7 @@ int resolve_interface_names(char** ifs, int num_ifs,
|
||||
}
|
||||
*num_resif = num_ifs;
|
||||
for(p = list; p; p = p->next) {
|
||||
*num_resif ++;
|
||||
(*num_resif)++;
|
||||
}
|
||||
*resif = calloc(*num_resif, sizeof(**resif));
|
||||
if(!*resif) {
|
||||
@@ -1600,15 +1600,17 @@ int resolve_interface_names(char** ifs, int num_ifs,
|
||||
}
|
||||
}
|
||||
if(list) {
|
||||
int idx = num_ifs;
|
||||
for(p = list; p; p = p->next) {
|
||||
(*resif)[i] = strdup(p->str);
|
||||
if(!((*resif)[i])) {
|
||||
(*resif)[idx] = strdup(p->str);
|
||||
if(!((*resif)[idx])) {
|
||||
log_err("out of memory");
|
||||
config_del_strarray(*resif, *num_resif);
|
||||
*resif = NULL;
|
||||
*num_resif = 0;
|
||||
return 0;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user