[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130904233018.GB5727@redhat.com>
Date: Wed, 4 Sep 2013 19:30:18 -0400
From: Dave Jones <davej@...hat.com>
To: netdev@...r.kernel.org
Cc: Larry.Finger@...inger.net
Subject: rtl8188eu array/null comparison.
Hi Larry,
in drivers/staging/rtl8188eu/core/rtw_mlme.c:rtw_check_join_candidate there's this code..
1721 /* check ssid, if needed */
1722 if (pmlmepriv->assoc_ssid.Ssid && pmlmepriv->assoc_ssid.SsidLength) {
1723 if (competitor->network.Ssid.SsidLength != pmlmepriv->assoc_ssid.SsidLength ||
1724 _rtw_memcmp(competitor->network.Ssid.Ssid, pmlmepriv->assoc_ssid.Ssid, pmlmepriv->assoc_ssid.SsidLength) == false)
1725 goto exit;
1726 }
1727
assoc_ssid.Ssid being an array, this comparison against null probably isn't what was intended ?
Dave
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists