DPP2: Fix DPP_CA_SET processing with authentication not having peer BI
Need to check for auth->peer_bi being set before using it here. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
4f4a52c3cc
commit
b62e46f690
1 changed files with 2 additions and 1 deletions
|
@ -3668,7 +3668,8 @@ int wpas_dpp_ca_set(struct wpa_supplicant *wpa_s, const char *cmd)
|
|||
if (pos) {
|
||||
peer = atoi(pos + 6);
|
||||
if (!auth || !auth->waiting_cert ||
|
||||
(unsigned int) peer != auth->peer_bi->id) {
|
||||
(auth->peer_bi &&
|
||||
(unsigned int) peer != auth->peer_bi->id)) {
|
||||
auth = dpp_controller_get_auth(wpa_s->dpp, peer);
|
||||
tcp = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue