[S] Change in libosmocore[master]: osmo_io: Avoid read of uninitialized variable
daniel has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/32724 ) Change subject: osmo_io: Avoid read of uninitialized variable ...................................................................... osmo_io: Avoid read of uninitialized variable Change-Id: Ica8087c73fc10f01026fdbe692b172ad07fe593d Fixes: CID#315618 --- M src/core/osmo_io_poll.c 1 file changed, 11 insertions(+), 1 deletion(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/src/core/osmo_io_poll.c b/src/core/osmo_io_poll.c index 95aa84a..bc203c0 100644 --- a/src/core/osmo_io_poll.c +++ b/src/core/osmo_io_poll.c @@ -61,7 +61,7 @@ hdr.hdr.msg_iov = &hdr.iov[0]; hdr.hdr.msg_iovlen = 1; hdr.hdr.msg_name = &hdr.osa.u.sa; - hdr.hdr.msg_namelen = osmo_sockaddr_size(&hdr.osa); + hdr.hdr.msg_namelen = sizeof(struct osmo_sockaddr); rc = recvmsg(ofd->fd, &hdr.hdr, flags); if (rc > 0) -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/32724 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ica8087c73fc10f01026fdbe692b172ad07fe593d Gerrit-Change-Number: 32724 Gerrit-PatchSet: 1 Gerrit-Owner: daniel <dwillmann@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-MessageType: merged
participants (1)
-
daniel