svn commit: r216517 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sat Dec 18 11:45:54 UTC 2010


Author: tuexen
Date: Sat Dec 18 11:45:54 2010
New Revision: 216517
URL: http://svn.freebsd.org/changeset/base/216517

Log:
  MFC 216480:
  Add a missing cast. Reported by blade_ly at yahoo.com.cn.
  
  Approved by: re (kib)

Modified:
  stable/8/sys/netinet/sctp_indata.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/netinet/sctp_indata.c
==============================================================================
--- stable/8/sys/netinet/sctp_indata.c	Sat Dec 18 11:31:32 2010	(r216516)
+++ stable/8/sys/netinet/sctp_indata.c	Sat Dec 18 11:45:54 2010	(r216517)
@@ -1754,7 +1754,7 @@ sctp_process_a_data_chunk(struct sctp_tc
 	    asoc->fragmented_delivery_inprogress == 0 &&
 	    TAILQ_EMPTY(&asoc->resetHead) &&
 	    ((ordered == 0) ||
-	    ((asoc->strmin[strmno].last_sequence_delivered + 1) == strmseq &&
+	    ((uint16_t) (asoc->strmin[strmno].last_sequence_delivered + 1) == strmseq &&
 	    TAILQ_EMPTY(&asoc->strmin[strmno].inqueue)))) {
 		/* Candidate for express delivery */
 		/*


More information about the svn-src-stable-8 mailing list