Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Aug 2021 08:00:09 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a8d54fc903cc - main - ipv6: Fix getsockopt() for some IPPROTO_IPV6 level socket options
Message-ID:  <202108090800.179809oj012393@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8d54fc903cca354572ddd7a890baefd81baa7e8

commit a8d54fc903cca354572ddd7a890baefd81baa7e8
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-08-09 07:23:42 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2021-08-09 07:29:13 +0000

    ipv6: Fix getsockopt() for some IPPROTO_IPV6 level socket options
    
    Fix getsockopt() for the IPPROTO_IPV6 level socket options with the
    following names: IPV6_HOPOPTS, IPV6_RTHDR, IPV6_RTHDRDSTOPTS,
    IPV6_DSTOPTS, and IPV6_NEXTHOP.
    
    Reviewed by:            markj
    MFC after:              3 days
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D31458
---
 sys/netinet6/ip6_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index 71c5c4e5a501..fedb6c6b6c78 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -2584,7 +2584,7 @@ ip6_pcbopt(int optname, u_char *buf, int len, struct ip6_pktopts **pktopt,
 		pktopt = inp->in6p_outputopts;					\
 		if (pktopt && pktopt->field) {					\
 			optdatalen = min(lenexpr, sopt->sopt_valsize);		\
-			bcopy(&pktopt->field, optdata, optdatalen);		\
+			bcopy(pktopt->field, optdata, optdatalen);		\
 		} else {							\
 			free(optdata, M_TEMP);					\
 			optdata = NULL;						\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108090800.179809oj012393>