0
0
mirror of https://github.com/hufrea/byedpi.git synced 2025-06-29 18:21:14 +00:00

Fix ECH resizing

This commit is contained in:
ruti 2025-06-15 20:54:59 +03:00
parent 676817c068
commit 110ad77ee4

View File

@ -206,7 +206,7 @@ static int resize_ech_ext(char *buffer,
SHTONA(buffer, ech_offs + 2, ech_sz + inc);
SHTONA(buffer, pay_offs, pay_sz + inc);
memmove(buffer + ech_end + inc, buffer + ech_end, n - ech_end);
memmove(buffer + ech_end + inc, buffer + ech_end, n - (ech_end + inc));
return inc;
}