Date: Sat, 28 Mar 2020 22:35:05 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359410 - head/sys/netinet Message-ID: <202003282235.02SMZ5fN097717@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003282235.02SMZ5fN097717>