1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Reverse the source/destination parameters to in[6]_pcblookup_hash() in

syncache_respond() for the #ifdef MAC case.

Submitted by:	Tai-hwa Liang <avatar-at-mmlab.cse.yzu.edu.tw>
This commit is contained in:
Andre Oppermann 2006-06-26 09:43:55 +00:00
parent b4470c1639
commit dfabcc1d29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159945

View File

@ -1100,14 +1100,14 @@ syncache_respond(struct syncache *sc, struct mbuf *m)
#ifdef INET6 /* && MAC */
if (sc->sc_inc.inc_isipv6)
inp = in6_pcblookup_hash(&tcbinfo,
&sc->sc_inc.inc6_laddr, sc->sc_inc.inc_lport,
&sc->sc_inc.inc6_faddr, sc->sc_inc.inc_fport,
&sc->sc_inc.inc6_laddr, sc->sc_inc.inc_lport,
1, NULL);
else
#endif /* INET6 */
inp = in_pcblookup_hash(&tcbinfo,
sc->sc_inc.inc_laddr, sc->sc_inc.inc_lport,
sc->sc_inc.inc_faddr, sc->sc_inc.inc_fport,
sc->sc_inc.inc_laddr, sc->sc_inc.inc_lport,
1, NULL);
if (inp == NULL) {
m_freem(m);