Use the correct end pointer to avoid negative length and program
termination due to the hexdump.
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
if (info_end > pos) {
wpa_hexdump(MSG_INFO,
"Extra information at the end of STA Info",
- pos, ci_end - pos);
+ pos, info_end - pos);
pos = info_end;
}
if (info_end > pos) {
wpa_hexdump(MSG_INFO,
"Extra information at the end of STA Info",
- pos, ci_end - pos);
+ pos, info_end - pos);
pos = info_end;
}