aboutsummaryrefslogtreecommitdiff
path: root/src/tcp_subr.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-01-29 22:52:35 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-01-29 22:52:35 +0100
commit50a9171f2fb23182c3270faefab74152d49c7e97 (patch)
treecba6df98944618f32ae215145fd4abaed473aaba /src/tcp_subr.c
parent4284fc86c23e5727bdb97bcce83fd36a4bfc13af (diff)
downloadslirp-50a9171f2fb23182c3270faefab74152d49c7e97.zip
slirp-50a9171f2fb23182c3270faefab74152d49c7e97.tar.gz
slirp-50a9171f2fb23182c3270faefab74152d49c7e97.tar.bz2
tcp_subr: simplify code
This is actually similar to the fix in 9f78e94912f9 ("Fix a typo that can cause slow socket response on Windows."), except that here there is no semantic change since s = so->s above. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'src/tcp_subr.c')
-rw-r--r--src/tcp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_subr.c b/src/tcp_subr.c
index b39381f..b4777ce 100644
--- a/src/tcp_subr.c
+++ b/src/tcp_subr.c
@@ -421,7 +421,7 @@ int tcp_fconnect(struct socket *so, unsigned short af)
struct sockaddr_storage addr;
slirp_set_nonblock(s);
- so->slirp->cb->register_poll_fd(so->s, so->slirp->opaque);
+ so->slirp->cb->register_poll_fd(s, so->slirp->opaque);
slirp_socket_set_fast_reuse(s);
opt = 1;
setsockopt(s, SOL_SOCKET, SO_OOBINLINE, &opt, sizeof(opt));