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:
johnjiang 2025-03-27 12:26:57 +08:00 committed by GitHub
commit 63196ac70d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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 {