]> git.ipfire.org Git - thirdparty/hostap.git/commit
RRM: Fix wpas_rrm_send_msr_report() loop handling
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 8 Mar 2017 14:16:37 +0000 (16:16 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 8 Mar 2017 14:16:37 +0000 (16:16 +0200)
commitb696f791ac011a7d9bed73db11c16199b56aa2b1
treeadaec3ac1e0612d490b738019ca80a2a33653647
parent891aa65b88f457b6e293bcfce7ddbe25eaf00f15
RRM: Fix wpas_rrm_send_msr_report() loop handling

The while (len) loop was updating the next pointer at the end even when
len == 0, i.e., when the new next value won't be used. This could result
in reading one octet beyond the end of the allocated response wpabuf.
While the read value is not really used in practice, this is not correct
behavior, so fix this by skipping the unnecessary next pointer update in
len == 0 case.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/rrm.c