]> git.feebdaed.xyz Git - 0xmirror/f-stack.git/commitdiff
ff_hook_recvfrom sh_fromlen not init, ff_sys_recvfrom will return -1
authorliujinhui-job <17839916631@163.com>
Mon, 24 Mar 2025 10:59:14 +0000 (10:59 +0000)
committerliujinhui-job <17839916631@163.com>
Mon, 24 Mar 2025 10:59:14 +0000 (10:59 +0000)
adapter/syscall/ff_hook_syscall.c

index ff52de6068520fa72eec359d7521bc4b943edef4..f7520b39020b23a173a8dee7b781b37e75a9ec26 100644 (file)
@@ -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 {