summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_asconf.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2010-12-30 16:23:13 +0000
committertuexen <tuexen@FreeBSD.org>2010-12-30 16:23:13 +0000
commite71b6473c68e46ca3d024d8bd06702b8b854aa25 (patch)
treeaee425cad833ef1e55fbab34039da8a847c62f7f /sys/netinet/sctp_asconf.c
parentaa5a8ce5f29eaca61906a4f8503ed3c76ccb5544 (diff)
downloadFreeBSD-src-e71b6473c68e46ca3d024d8bd06702b8b854aa25.zip
FreeBSD-src-e71b6473c68e46ca3d024d8bd06702b8b854aa25.tar.gz
Fix three bugs related to the sequence number wrap-around affecting
the processing of ECNE and ASCONF chunks. Reviewed by: rrs MFC after: 3 days.
Diffstat (limited to 'sys/netinet/sctp_asconf.c')
-rw-r--r--sys/netinet/sctp_asconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c
index 288381d..a9d0f37 100644
--- a/sys/netinet/sctp_asconf.c
+++ b/sys/netinet/sctp_asconf.c
@@ -632,7 +632,7 @@ sctp_handle_asconf(struct mbuf *m, unsigned int offset,
asoc = &stcb->asoc;
serial_num = ntohl(cp->serial_number);
- if (compare_with_wrap(asoc->asconf_seq_in, serial_num, MAX_SEQ) ||
+ if (compare_with_wrap(asoc->asconf_seq_in, serial_num, MAX_TSN) ||
serial_num == asoc->asconf_seq_in) {
/* got a duplicate ASCONF */
SCTPDBG(SCTP_DEBUG_ASCONF1,
OpenPOWER on IntegriCloud