device: let macsec connection fail on supplicant timeout if no secrets are required

Like for ethernet.
This commit is contained in:
Thomas Haller 2018-04-12 14:13:23 +02:00
parent 7dab990eb2
commit d5ee549e07

View file

@ -494,8 +494,10 @@ handle_auth_or_fail (NMDeviceMacsec *self,
macsec_secrets_get_secrets (self, setting_name,
NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION
| (new_secrets ? NM_SECRET_AGENT_GET_SECRETS_FLAG_REQUEST_NEW : 0));
} else
} else {
_LOGI (LOGD_DEVICE, "Cleared secrets, but setting didn't need any secrets.");
return NM_ACT_STAGE_RETURN_FAILURE;
}
return NM_ACT_STAGE_RETURN_POSTPONE;
}