Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2020 10:09:06 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357197 - head/sys/netinet
Message-ID:  <202001281009.00SA96FO012467@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Tue Jan 28 10:09:05 2020
New Revision: 357197
URL: https://svnweb.freebsd.org/changeset/base/357197

Log:
  Fix build issues for the userland stack on 32-bit platforms.
  
  Reported by:		Felix Weinrank
  MFC after:		1 week

Modified:
  head/sys/netinet/sctp_asconf.c
  head/sys/netinet/sctp_output.c

Modified: head/sys/netinet/sctp_asconf.c
==============================================================================
--- head/sys/netinet/sctp_asconf.c	Tue Jan 28 07:49:52 2020	(r357196)
+++ head/sys/netinet/sctp_asconf.c	Tue Jan 28 10:09:05 2020	(r357197)
@@ -105,7 +105,7 @@ sctp_asconf_error_response(uint32_t id, uint16_t cause
 	struct mbuf *m_reply = NULL;
 	struct sctp_asconf_paramhdr *aph;
 	struct sctp_error_cause *error;
-	size_t buf_len;
+	uint32_t buf_len;
 	uint16_t i, param_length, cause_length, padding_length;
 	uint8_t *tlv;
 

Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c	Tue Jan 28 07:49:52 2020	(r357196)
+++ head/sys/netinet/sctp_output.c	Tue Jan 28 10:09:05 2020	(r357197)
@@ -6885,7 +6885,7 @@ sctp_sendall(struct sctp_inpcb *inp, struct uio *uio, 
 		/* There is another. */
 		return (EBUSY);
 	}
-	if (uio->uio_resid > SCTP_BASE_SYSCTL(sctp_sendall_limit)) {
+	if (uio->uio_resid > (ssize_t)SCTP_BASE_SYSCTL(sctp_sendall_limit)) {
 		/* You must not be larger than the limit! */
 		return (EMSGSIZE);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001281009.00SA96FO012467>