From: Jouni Malinen Date: Mon, 22 Jun 2020 18:45:10 +0000 (+0300) Subject: DPP2: Fix DPP_CA_SET processing with authentication not having peer BI X-Git-Tag: hostap_2_10~1104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b62e46f6908bdb627c8d31006dd878fc7a3ffeec;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c index 0cda38542..801e372bb 100644 --- a/wpa_supplicant/dpp_supplicant.c +++ b/wpa_supplicant/dpp_supplicant.c @@ -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; }