summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2010-12-22 17:59:38 +0000
committertuexen <tuexen@FreeBSD.org>2010-12-22 17:59:38 +0000
commitc17bd2abe06cae94dd7c76d82b5484b79b746af2 (patch)
tree80303e0e707760d51274d8c8dfdfdf5f3083faab /sys/netinet6
parentaa42d9f67fb8820598ba9b01c9f9de9a6525eba1 (diff)
downloadFreeBSD-src-c17bd2abe06cae94dd7c76d82b5484b79b746af2.zip
FreeBSD-src-c17bd2abe06cae94dd7c76d82b5484b79b746af2.tar.gz
Improve plausibility check in sctp_handle_sack().
Allow cmt_on_off to support values 0 (no CMT), 1 (CMT), and 2 (CMT/RP). MFC after: 3 months.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/sctp6_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c
index cc3af66..861600a 100644
--- a/sys/netinet6/sctp6_usrreq.c
+++ b/sys/netinet6/sctp6_usrreq.c
@@ -426,7 +426,7 @@ sctp6_notify(struct sctp_inpcb *inp,
* PF state.
*/
/* Stop any running T3 timers here? */
- if ((stcb->asoc.sctp_cmt_on_off == 1) &&
+ if ((stcb->asoc.sctp_cmt_on_off > 0) &&
(stcb->asoc.sctp_cmt_pf > 0)) {
net->dest_state &= ~SCTP_ADDR_PF;
SCTPDBG(SCTP_DEBUG_TIMER4, "Destination %p moved from PF to unreachable.\n",
OpenPOWER on IntegriCloud