On Sun, Jan 4, 2009 at 9:18 PM, Geoffrey McRae <ge...@rabidhost.com> wrote: > Isn't that patch slightly wrong anyway? > > If the length of the ssid is 0 why check its first byte? Without looking > at the surrounding code, if that buffer is not allocated and we check > the bytes value, it could cause a seg fault.
As it happens, ssid is a statically allocated array, part of struct ieee80211_bss. But I agree it should be written differently if it is to go in. -- Bob Copeland %% www.bobcopeland.com _______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel