ff_hook_recvfrom sh_fromlen not init, ff_sys_recvfrom will return -1

This commit is contained in:
liujinhui-job 2025-03-24 10:59:14 +00:00
parent d51db78cf0
commit 3c21f22533
1 changed files with 3 additions and 0 deletions

View File

@ -766,6 +766,9 @@ ff_hook_recvfrom(int fd, void *buf, size_t len, int flags,
}
}
/* sh_fromlen is input and output param */
*sh_fromlen = *fromlen;
args->from = sh_from;
args->fromlen = sh_fromlen;
} else {