[Slirp] [Git][slirp/libslirp][master] 2 commits: tcpx_listen: tcp_newtcpcb doesn't fail
Samuel Thibault
gitlab at gitlab.freedesktop.org
Tue Apr 6 20:02:59 UTC 2021
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
0d90aa7c by Doug Evans at 2021-03-29T13:48:22-07:00
tcpx_listen: tcp_newtcpcb doesn't fail
Signed-off-by: Doug Evans <dje at google.com>
- - - - -
4b30c086 by Samuel Thibault at 2021-04-06T20:02:57+00:00
Merge branch 'newtcpcb-no-fail' into 'master'
tcpx_listen: tcp_newtcpcb doesn't fail
See merge request slirp/libslirp!79
- - - - -
1 changed file:
- src/socket.c
Changes:
=====================================
src/socket.c
=====================================
@@ -764,10 +764,7 @@ struct socket *tcpx_listen(Slirp *slirp,
so = socreate(slirp);
/* Don't tcp_attach... we don't need so_snd nor so_rcv */
- if ((so->so_tcpcb = tcp_newtcpcb(so)) == NULL) {
- g_free(so);
- return NULL;
- }
+ so->so_tcpcb = tcp_newtcpcb(so);
insque(so, &slirp->tcb);
/*
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/209288ae742125f271a5859e0e37c8e3d4858b40...4b30c0865b6ee2a15ecfcbd255edbd30be6379f9
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/209288ae742125f271a5859e0e37c8e3d4858b40...4b30c0865b6ee2a15ecfcbd255edbd30be6379f9
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/20210406/175df212/attachment.htm>
More information about the Slirp
mailing list