From 89d77313c62da0f9d3cf860554f8e9c80b2a295f Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Wed, 18 Feb 2015 07:12:22 -0500 Subject: [PATCH] Deconfigure the interface if we've failed a fingerprint check. We've moved to a new network, so keeping the old information is counterproductive. --- src/state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/state.c b/src/state.c index 79b59c8..810379f 100644 --- a/src/state.c +++ b/src/state.c @@ -678,11 +678,12 @@ skip_to_requesting: int r = ifup_action(cs); if (r == IFUP_REVALIDATE) { } else if (r == IFUP_NEWLEASE) { - // XXX: Deconfigure the interface. The network has changed. - if (reinit_selecting(cs, 0) < 0) { + if (ifchange_deconfig(cs) < 0) { + // Likely only to fail because of rfkill. ret = COR_ERROR; scrReturn(ret); } + reinit_selecting(cs, 0); sev_dhcp = false; goto reinit; } else if (r == IFUP_FAIL) {