svn commit: r364536 - stable/12/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Aug 23 21:01:57 UTC 2020


Author: tuexen
Date: Sun Aug 23 21:01:56 2020
New Revision: 364536
URL: https://svnweb.freebsd.org/changeset/base/364536

Log:
  MFC r357197:
  Fix build issues for the userland stack on 32-bit platforms.

Modified:
  stable/12/sys/netinet/sctp_asconf.c
  stable/12/sys/netinet/sctp_output.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netinet/sctp_asconf.c
==============================================================================
--- stable/12/sys/netinet/sctp_asconf.c	Sun Aug 23 20:44:15 2020	(r364535)
+++ stable/12/sys/netinet/sctp_asconf.c	Sun Aug 23 21:01:56 2020	(r364536)
@@ -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: stable/12/sys/netinet/sctp_output.c
==============================================================================
--- stable/12/sys/netinet/sctp_output.c	Sun Aug 23 20:44:15 2020	(r364535)
+++ stable/12/sys/netinet/sctp_output.c	Sun Aug 23 21:01:56 2020	(r364536)
@@ -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);
 	}


More information about the svn-src-all mailing list