mac80211: sanity check for null SSID
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 29 Mar 2012 14:30:41 +0000 (16:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 19:20:28 +0000 (15:20 -0400)
commit88c868c43ba38ac3bab07bab4c45b4bc44c94357
treec56c66967ebb4a33142a54ef94396340656399bf
parent32c5057b22a60b23353dda93c57e475856ca286c
mac80211: sanity check for null SSID

While associated we should never have empty SSID, but life can be full
of surprises, and is allways better to print a warning than crash.

Before memcpy() in ieee80211_probereq_get() check ssid_len instead of
ssid pointer, sice pointer it always passed by "ssidie + 2" expression
to send probe functions, so practically never can be NULL.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c
net/mac80211/tx.c