2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

socket-util: Fix recursion issue in sendmmsg

The wrap_sendmmsg has infinite recursion issue.
Fix it by undef sendmmsg.

Signed-off-by: Zhenyu Gao <sysugaozhenyu@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Zhenyu Gao
2017-07-14 15:06:50 +00:00
committed by Ben Pfaff
parent c88f355626
commit 00f5565c7e

View File

@@ -1043,6 +1043,9 @@ sendmmsg(int fd, struct mmsghdr *msgs, unsigned int n, unsigned int flags)
return emulate_sendmmsg(fd, msgs, n, flags);
}
#else
/* sendmmsg was redefined in lib/socket-util.c, should undef sendmmsg here
* to avoid recursion */
#undef sendmmsg
int
wrap_sendmmsg(int fd, struct mmsghdr *msgs, unsigned int n, unsigned int flags)
{