svn commit: r364575 - stable/12/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sun Aug 23 22:28:19 UTC 2020
Author: tuexen
Date: Sun Aug 23 22:28:19 2020
New Revision: 364575
URL: https://svnweb.freebsd.org/changeset/base/364575
Log:
MFC r359410:
Small cleanup by using a variable just assigned.
Modified:
stable/12/sys/netinet/sctp_usrreq.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/12/sys/netinet/sctp_usrreq.c Sun Aug 23 22:26:38 2020 (r364574)
+++ stable/12/sys/netinet/sctp_usrreq.c Sun Aug 23 22:28:19 2020 (r364575)
@@ -2639,8 +2639,8 @@ flags_out:
net = stcb->asoc.primary_destination;
if (net != NULL) {
memcpy(&sstat->sstat_primary.spinfo_address,
- &stcb->asoc.primary_destination->ro._l_addr,
- ((struct sockaddr *)(&stcb->asoc.primary_destination->ro._l_addr))->sa_len);
+ &net->ro._l_addr,
+ ((struct sockaddr *)(&net->ro._l_addr))->sa_len);
((struct sockaddr_in *)&sstat->sstat_primary.spinfo_address)->sin_port = stcb->rport;
/*
* Again the user can get info from
More information about the svn-src-all
mailing list