mirror of https://github.com/F-Stack/f-stack.git
ff_hook_recvfrom sh_fromlen not init, ff_sys_recvfrom will return -1
This commit is contained in:
parent
d51db78cf0
commit
3c21f22533
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue