Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yorgos Thessalonikefs <[email protected]>
  • Loading branch information
wcawijngaards and gthess authored Jul 3, 2024
1 parent 65e7253 commit a19009d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipset/ipset.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void * open_filter() {
log_err("ipset: could not bind netfilter.");
return NULL;
}
return dev;
return (void *)dev;
}
#endif

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit a19009d

Please sign in to comment.