mirror of https://github.com/F-Stack/f-stack.git
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
This commit is contained in:
commit
63196ac70d
|
@ -781,6 +781,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