Comment 2 for bug 98926

Revision history for this message
Qishuai Liu (lqs) wrote :

In the Ubuntu version of the kernel source, the line 358 of ubuntu/net/rtl_ieee80211/rtl_ieee80211_softmac_wx.c, has the following code:

        if (wrqu->essid.flags && wrqu->essid.length) {
                len = ((wrqu->essid.length-1) < IW_ESSID_MAX_SIZE) ? (wrqu->essid.length-1) : IW_ESSID_MAX_SIZE;

                strncpy(ieee->current_network.ssid, extra, len);
                ieee->current_network.ssid_len = len;
                ieee->ssid_set = 1;
        }

I think the wrqu->essid.length should not minus one.

Anyone who can check it?