Commit 47f31dd9 authored by Alessandro Rubini's avatar Alessandro Rubini

rvlan: bugfix: only obey dotconfig if radius succeeded

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 9148b138
......@@ -297,9 +297,9 @@ int rvlan_fsm(struct rvlan_dev *dev, fd_set *rdset)
s = strchr(s, '"');
if (s)
sscanf(s+1, "%i", &dev->chosen_vlan);
if (rvlan_obey_dotconfig )
dev->chosen_vlan = dev->dotconfig_vlan;
}
if (rvlan_obey_dotconfig)
dev->chosen_vlan = dev->dotconfig_vlan;
if (verbose)
printf("dev %s: vlan %i\n", dev->name,
dev->chosen_vlan);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment