mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-01 13:20:36 +00:00
Fix un-initialised "used" field in --listen-address structure.
Also remove unused "isloop" field.
This commit is contained in:
1 parent
8b3ae2fd43
commit
4ce4f3779b
3 files changed
+6
-8
No files matched your search
+3
-2
@@ -1570,7 +1570,7 @@ static char *one_opt(int option, char *arg, char *gen_prob, int command_line)
|
||||
/* new->name may be NULL if someone does
|
||||
"interface=" to disable all interfaces except loop. */
|
||||
new->name = opt_string_alloc(arg);
|
||||
new->isloop = new->used = 0;
|
||||
new->used = 0;
|
||||
arg = comma;
|
||||
} while (arg);
|
||||
break;
|
||||
@@ -1640,7 +1640,8 @@ static char *one_opt(int option, char *arg, char *gen_prob, int command_line)
|
||||
option = '?'; /* error */
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
new->used = 0;
|
||||
daemon->if_addrs = new;
|
||||
arg = comma;
|
||||
} while (arg);
|
||||
|
||||
Reference in new issue
Block a user