Skip to content

Commit 63196ac

Browse files
authored
Merge pull request #872 from liujinhui-job/fix-ff_hook_recvfrom-sh_fromlen-not-init-error
ff_hook_recvfrom sh_fromlen not init by *fromlen
2 parents f98fb46 + 3c21f22 commit 63196ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adapter/syscall/ff_hook_syscall.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,9 @@ ff_hook_recvfrom(int fd, void *buf, size_t len, int flags,
781781
}
782782
}
783783

784+
/* sh_fromlen is input and output param */
785+
*sh_fromlen = *fromlen;
786+
784787
args->from = sh_from;
785788
args->fromlen = sh_fromlen;
786789
} else {

0 commit comments

Comments
 (0)