P2P: Add NULL pointer validation for ssid for group started event
It looks likely that ssid is not NULL here, but better keep this consistent with other uses of ssid pointer in this function.
This commit is contained in:
parent
d96e79f1e7
commit
d394a22f30
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ static void wpas_group_formation_completed(struct wpa_supplicant *wpa_s,
|
||||||
wpa_msg(wpa_s->parent, MSG_INFO, P2P_EVENT_GROUP_STARTED
|
wpa_msg(wpa_s->parent, MSG_INFO, P2P_EVENT_GROUP_STARTED
|
||||||
"%s GO ssid=\"%s\" freq=%d passphrase=\"%s\" "
|
"%s GO ssid=\"%s\" freq=%d passphrase=\"%s\" "
|
||||||
"go_dev_addr=" MACSTR "%s",
|
"go_dev_addr=" MACSTR "%s",
|
||||||
wpa_s->ifname, ssid_txt, ssid->frequency,
|
wpa_s->ifname, ssid_txt, ssid ? ssid->frequency : 0,
|
||||||
ssid && ssid->passphrase ? ssid->passphrase : "",
|
ssid && ssid->passphrase ? ssid->passphrase : "",
|
||||||
MAC2STR(go_dev_addr),
|
MAC2STR(go_dev_addr),
|
||||||
persistent ? " [PERSISTENT]" : "");
|
persistent ? " [PERSISTENT]" : "");
|
||||||
|
|
Loading…
Reference in a new issue