nl80211: fix possible unitialized memory access in nl80211_get_hardware_id()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2015-10-29 10:40:40 +01:00
parent 813f61e48b
commit eeaae3d011

View file

@ -2698,7 +2698,7 @@ static int nl80211_get_mbssid_support(const char *ifname, int *buf)
static int nl80211_get_hardware_id(const char *ifname, char *buf)
{
int rv;
int rv = -1;
char *res;
/* Got a radioX pseudo interface, find some interface on it or create one */