Skip to content

Commit 3c21f22

Browse files
committed
ff_hook_recvfrom sh_fromlen not init, ff_sys_recvfrom will return -1
1 parent d51db78 commit 3c21f22

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

adapter/syscall/ff_hook_syscall.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@ ff_hook_recvfrom(int fd, void *buf, size_t len, int flags,
766766
}
767767
}
768768

769+
/* sh_fromlen is input and output param */
770+
*sh_fromlen = *fromlen;
771+
769772
args->from = sh_from;
770773
args->fromlen = sh_fromlen;
771774
} else {

0 commit comments

Comments
 (0)