aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-09-14 20:29:57 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-09-14 20:29:57 +0000
commit14e75d1c6d1509259be070725c5128abf340275f (patch)
tree5a4b9e1e624064f737c745fe84cbabe0bb568aa8
parent6ec031b297b3f9bebd692511492367b4f14e50b4 (diff)
parent6cc7c4637bae3906c7d84d8af1d2f333a19ac826 (diff)
downloadslirp-14e75d1c6d1509259be070725c5128abf340275f.zip
slirp-14e75d1c6d1509259be070725c5128abf340275f.tar.gz
slirp-14e75d1c6d1509259be070725c5128abf340275f.tar.bz2
Merge branch 'sin6_scope_fix' into 'master'
Initialize sin6_scope_id to zero See merge request slirp/libslirp!102
-rw-r--r--src/tcp_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tcp_input.c b/src/tcp_input.c
index 36a4844..45706fe 100644
--- a/src/tcp_input.c
+++ b/src/tcp_input.c
@@ -218,6 +218,9 @@ void tcp_input(struct mbuf *m, int iphlen, struct socket *inso,
DEBUG_CALL("tcp_input");
DEBUG_ARG("m = %p iphlen = %2d inso = %p", m, iphlen, inso);
+ memset(&lhost, 0, sizeof(struct sockaddr_storage));
+ memset(&fhost, 0, sizeof(struct sockaddr_storage));
+
/*
* If called with m == 0, then we're continuing the connect
*/