Skip to content

Commit fdd89ab

Browse files
Update ff_hook_syscall.c
1 parent 930bdd0 commit fdd89ab

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
@@ -1132,10 +1132,6 @@ iovec_share2local(struct iovec *share,
11321132
count = total;
11331133
}
11341134

1135-
share[i].iov_base =
1136-
(char *)share[i].iov_base - count;
1137-
share[i].iov_len += count;
1138-
11391135
if (copy) {
11401136
rte_memcpy(local[i].iov_base,
11411137
share[i].iov_base, count);
@@ -1673,12 +1669,6 @@ ff_hook_sendmsg(int fd, const struct msghdr *msg, int flags)
16731669

16741670
SYSCALL(FF_SO_SENDMSG, args);
16751671

1676-
if (ret > 0) {
1677-
iovec_share2local(sh_msg->msg_iov,
1678-
msg->msg_iov, msg->msg_iovlen,
1679-
ret, 0);
1680-
}
1681-
16821672
msghdr_share_free(sh_msg);
16831673

16841674
RETURN_NOFREE();

0 commit comments

Comments
 (0)