package/hostapd: fix crash in atheros driver (#8143)
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 29 Oct 2010 21:25:39 +0000 (21:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 29 Oct 2010 21:25:39 +0000 (21:25 +0000)
commit522a411c112fb5c7e85546f21c4995c7264a57f5
tree10f78575ea8f4a8290326881f6accd27633a31a1
parentd4b77f3145856dec4399b0d9627ac2986401b47b
package/hostapd: fix crash in atheros driver (#8143)
hapd->driver->set_operstate may happen when the drv_priv data is not initialized yet,
this leads to a null pointer deref in the atheros driver. Protect the operstate call with a
check for hapd->drv_priv.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23715 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/hostapd/patches/460-oper_state_fix.patch