Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2020 22:28:19 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364575 - stable/12/sys/netinet
Message-ID:  <202008232228.07NMSJSF099305@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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