fix: overwrite request if split

This commit is contained in:
ruti 2024-05-11 20:56:32 +03:00
parent a5d94d1d7e
commit 13d0a9e4ed
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ int on_desync(struct poolhd *pool, struct eval *val,
uniperror("realloc");
return -1;
}
memcpy(val->buff.data + val->buff.offset, buffer, n);
memcpy(val->buff.data + val->buff.size - n, buffer, n);
int m = val->attempt;
if (!m) for (; m < params.dp_count; m++) {

2
main.c
View File

@ -24,7 +24,7 @@
#define close(fd) closesocket(fd)
#endif
#define VERSION "10.1"
#define VERSION "10.2"
char oob_char[1] = "a";
char ip_option[1] = "\0";