diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2007-04-30 23:12:05 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2007-04-30 23:12:05 +0000 |
| commit | 712fc218a08cd427cbebc71de439e4cf1458619f (patch) | |
| tree | 119273487ff879cda562b2fa2b8c40c1b950e2b0 /sys/netinet6/in6_src.c | |
| parent | 2f9f08b635ee844f64d646139e16de61f21d4186 (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/in6_src.c')
| -rw-r--r-- | sys/netinet6/in6_src.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index 204781ef7ca2..bee583cec31e 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -773,7 +773,7 @@ in6_pcbsetport(laddr, inp, cred) if (inp->inp_flags & INP_HIGHPORT) { first = ipport_hifirstauto; /* sysctl */ last = ipport_hilastauto; - lastport = &pcbinfo->lasthi; + lastport = &pcbinfo->ipi_lasthi; } else if (inp->inp_flags & INP_LOWPORT) { error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, SUSER_ALLOWJAIL); @@ -781,11 +781,11 @@ in6_pcbsetport(laddr, inp, cred) return error; first = ipport_lowfirstauto; /* 1023 */ last = ipport_lowlastauto; /* 600 */ - lastport = &pcbinfo->lastlow; + lastport = &pcbinfo->ipi_lastlow; } else { first = ipport_firstauto; /* sysctl */ last = ipport_lastauto; - lastport = &pcbinfo->lastport; + lastport = &pcbinfo->ipi_lastport; } /* * Simple check to ensure all ports are not used up causing |
