fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-netif/+/35332?usp=email )
Change subject: osmo_stream_srv_link_ofd_cb(): fix wrong socket size passed to accept()
......................................................................
osmo_stream_srv_link_ofd_cb(): fix wrong socket size passed to accept()
Change-Id: Ie280c255fb2ba790b448e283439c42b766427352
Fixes: CID#321414
---
M src/stream_srv.c
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/32/35332/1
diff --git a/src/stream_srv.c b/src/stream_srv.c
index 0dca10a..7cad4c4 100644
--- a/src/stream_srv.c
+++ b/src/stream_srv.c
@@ -117,7 +117,7 @@
int ret;
int sock_fd;
struct osmo_sockaddr osa;
- socklen_t sa_len = sizeof(osa.u.sas);
+ socklen_t sa_len = sizeof(osa.u.sa);
struct osmo_stream_srv_link *link = ofd->data;
ret = accept(ofd->fd, &osa.u.sa, &sa_len);
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-netif/+/35332?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ie280c255fb2ba790b448e283439c42b766427352
Gerrit-Change-Number: 35332
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange