Skip to content

Commit

Permalink
Linux kernel coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Mar 21, 2020
1 parent cee6abd commit 1be7caa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,11 +1245,12 @@ int ipv4_del_nameservers_from_resolv_conf(struct tunnel *tunnel)
#if HAVE_RESOLVCONF
if (tunnel->config->use_resolvconf
&& (access(RESOLVCONF_PATH, F_OK) == 0)) {
int resolvconf_call_len
= strlen(RESOLVCONF_PATH)
+ 20
+ strlen(tunnel->ppp_iface);
char *resolvconf_call = malloc(resolvconf_call_len);
int resolvconf_call_len;
char *resolvconf_call;

resolvconf_call_len = strlen(RESOLVCONF_PATH) + 20
+ strlen(tunnel->ppp_iface);
resolvconf_call = malloc(resolvconf_call_len);
if (resolvconf_call == NULL) {
log_warn("Could not create command to run resolvconf (%s).\n",
strerror(errno));
Expand Down

0 comments on commit 1be7caa

Please sign in to comment.