svn commit: r294159 - stable/10/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sat Jan 16 16:52:52 UTC 2016


Author: tuexen
Date: Sat Jan 16 16:52:50 2016
New Revision: 294159
URL: https://svnweb.freebsd.org/changeset/base/294159

Log:
  MFC r287719:
  Address a compile warning.

Modified:
  stable/10/sys/netinet/sctp_input.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_input.c
==============================================================================
--- stable/10/sys/netinet/sctp_input.c	Sat Jan 16 16:46:00 2016	(r294158)
+++ stable/10/sys/netinet/sctp_input.c	Sat Jan 16 16:52:50 2016	(r294159)
@@ -530,9 +530,9 @@ sctp_process_init_ack(struct mbuf *m, in
 		 * abandon the peer, its broke.
 		 */
 		if (retval == -3) {
-			size_t len;
+			uint16_t len;
 
-			len = sizeof(struct sctp_error_missing_param) + sizeof(uint16_t);
+			len = (uint16_t) (sizeof(struct sctp_error_missing_param) + sizeof(uint16_t));
 			/* We abort with an error of missing mandatory param */
 			op_err = sctp_get_mbuf_for_msg(len, 0, M_NOWAIT, 1, MT_DATA);
 			if (op_err != NULL) {


More information about the svn-src-all mailing list