mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 14:53:15 -05:00
Apply suggestions from code review
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
This commit is contained in:
parent
65e7253d19
commit
a19009df1d
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ static void * open_filter() {
|
||||||
log_err("ipset: could not bind netfilter.");
|
log_err("ipset: could not bind netfilter.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return dev;
|
return (void *)dev;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -282,7 +282,7 @@ static int ipset_update(struct module_env *env, struct dns_msg *return_msg,
|
||||||
#ifdef HAVE_NET_PFVAR_H
|
#ifdef HAVE_NET_PFVAR_H
|
||||||
#else
|
#else
|
||||||
if (!ie->dev) {
|
if (!ie->dev) {
|
||||||
// retry to create mnl socket
|
/* retry to create mnl socket */
|
||||||
ie->dev = open_filter();
|
ie->dev = open_filter();
|
||||||
if (!ie->dev) {
|
if (!ie->dev) {
|
||||||
log_warn("ipset open_filter failed");
|
log_warn("ipset open_filter failed");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue