Oh bollocks, I really screwed up the "auto" check here. Time
to crack the K&R; I must have forgotten the C language. :) Embarrassingly noticed by: Howard Gutch <logix@foobar.franken.de>
This commit is contained in:
parent
fe4a1c892b
commit
222e52ceae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51735
@ -391,7 +391,7 @@ tcpOpenDialog(Device *devp)
|
||||
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
|
||||
variable_set2(ifn, temp, 1);
|
||||
ifaces = variable_get(VAR_INTERFACES);
|
||||
if (!ifaces || !strcmp(ifaces, "auto"))
|
||||
if (!ifaces || (ifaces && !strcmp(ifaces, "auto")))
|
||||
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
|
||||
/* Only add it if it's not there already */
|
||||
if (!strstr(ifaces, devp->name)) {
|
||||
|
@ -391,7 +391,7 @@ tcpOpenDialog(Device *devp)
|
||||
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
|
||||
variable_set2(ifn, temp, 1);
|
||||
ifaces = variable_get(VAR_INTERFACES);
|
||||
if (!ifaces || !strcmp(ifaces, "auto"))
|
||||
if (!ifaces || (ifaces && !strcmp(ifaces, "auto")))
|
||||
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
|
||||
/* Only add it if it's not there already */
|
||||
if (!strstr(ifaces, devp->name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user