diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 54cd1ec3d..98d3ce475 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -6437,7 +6437,7 @@ static int wpas_ctrl_vendor_elem_remove(struct wpa_supplicant *wpa_s, char *cmd) wpa_s->vendor_elem[frame] = NULL; } else { os_memmove(ie, ie + len, - wpabuf_len(wpa_s->vendor_elem[frame]) - len); + end - (ie + len)); wpa_s->vendor_elem[frame]->used -= len; } os_free(buf);