mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-18 23:06:06 -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.");
|
||||
return NULL;
|
||||
}
|
||||
return dev;
|
||||
return (void *)dev;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -282,7 +282,7 @@ static int ipset_update(struct module_env *env, struct dns_msg *return_msg,
|
|||
#ifdef HAVE_NET_PFVAR_H
|
||||
#else
|
||||
if (!ie->dev) {
|
||||
// retry to create mnl socket
|
||||
/* retry to create mnl socket */
|
||||
ie->dev = open_filter();
|
||||
if (!ie->dev) {
|
||||
log_warn("ipset open_filter failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue