Change in libosmocore[master]: socket: fix wrong ipv6 dst buf size passed in osmo_sock_local_ip

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Aug 31 09:33:51 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/19911 )

Change subject: socket: fix wrong ipv6 dst buf size passed in osmo_sock_local_ip
......................................................................

socket: fix wrong ipv6 dst buf size passed in osmo_sock_local_ip

Change-Id: I13939fda9b3d642f9fa1413e59458aba0628a4a6
---
M src/socket.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/socket.c b/src/socket.c
index df37ab8..f91ad10 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -1453,7 +1453,7 @@
 		break;
 	case AF_INET6:
 		sin6 = (struct sockaddr_in6*)&local_addr;
-		if (!inet_ntop(AF_INET6, &sin6->sin6_addr, local_ip, INET_ADDRSTRLEN))
+		if (!inet_ntop(AF_INET6, &sin6->sin6_addr, local_ip, INET6_ADDRSTRLEN))
 			return -EINVAL;
 		break;
 	default:

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/19911
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I13939fda9b3d642f9fa1413e59458aba0628a4a6
Gerrit-Change-Number: 19911
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200831/e3b2fa3c/attachment.htm>


More information about the gerrit-log mailing list