svn commit: r359410 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Mar 28 22:35:15 UTC 2020
Author: tuexen
Date: Sat Mar 28 22:35:04 2020
New Revision: 359410
URL: https://svnweb.freebsd.org/changeset/base/359410
Log:
Small cleanup by using a variable just assigned.
MFC after: 1 week
Modified:
head/sys/netinet/sctp_usrreq.c
Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c Sat Mar 28 21:55:42 2020 (r359409)
+++ head/sys/netinet/sctp_usrreq.c Sat Mar 28 22:35:04 2020 (r359410)
@@ -2658,8 +2658,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-head
mailing list