[Slirp] [Git][slirp/libslirp][master] 2 commits: socket: consume empty packets
Samuel Thibault
gitlab at gitlab.freedesktop.org
Tue Dec 1 14:50:35 UTC 2020
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
1bfd4d93 by Giuseppe Scrivano at 2020-12-01T11:33:24+01:00
socket: consume empty packets
it fixes a tightloop when a packet with len==0 is received.
Closes: https://github.com/rootless-containers/slirp4netns/issues/227
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
ffc0d5ae by Samuel Thibault at 2020-12-01T14:50:33+00:00
Merge branch 'consume-empty-packet' into 'master'
socket: consume empty packets
See merge request slirp/libslirp!55
- - - - -
1 changed file:
- src/socket.c
Changes:
=====================================
src/socket.c
=====================================
@@ -592,9 +592,6 @@ void sorecvfrom(struct socket *so)
DEBUG_MISC(" ioctlsocket errno = %d-%s\n", errno, strerror(errno));
return;
}
- if (n == 0) {
- return;
- }
m = m_get(so->slirp);
if (!m) {
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/f18e658fd2768f74466951a1cce4481db28f8637...ffc0d5aec8ff394c39bd12859f73ee00a69f3119
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/f18e658fd2768f74466951a1cce4481db28f8637...ffc0d5aec8ff394c39bd12859f73ee00a69f3119
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20201201/2c561554/attachment.htm>
More information about the Slirp
mailing list