Skip to content

Commit 352ffae

Browse files
authored
Merge pull request #1030 from liujinhui-job/dev
fix some sendmsg and recvmsg issue
2 parents 2dec050 + fdd89ab commit 352ffae

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

adapter/syscall/ff_hook_syscall.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,10 +1134,6 @@ iovec_share2local(struct iovec *share,
11341134
count = total;
11351135
}
11361136

1137-
share[i].iov_base =
1138-
(char *)share[i].iov_base - count;
1139-
share[i].iov_len += count;
1140-
11411137
if (copy) {
11421138
rte_memcpy(local[i].iov_base,
11431139
share[i].iov_base, count);
@@ -1675,12 +1671,6 @@ ff_hook_sendmsg(int fd, const struct msghdr *msg, int flags)
16751671

16761672
SYSCALL(FF_SO_SENDMSG, args);
16771673

1678-
if (ret > 0) {
1679-
iovec_share2local(sh_msg->msg_iov,
1680-
msg->msg_iov, msg->msg_iovlen,
1681-
ret, 0);
1682-
}
1683-
16841674
msghdr_share_free(sh_msg);
16851675

16861676
RETURN_NOFREE();

0 commit comments

Comments
 (0)