Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2018 21:17:18 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332634 - stable/11/sys/netinet
Message-ID:  <201804162117.w3GLHINU051704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon Apr 16 21:17:18 2018
New Revision: 332634
URL: https://svnweb.freebsd.org/changeset/base/332634

Log:
  MFC r332269:
  
  Fix a signed/unsigned warning showing up for the userland stack
  on some platforms.
  Thanks to Felix Weinrank for reporting the issue.

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

Modified: stable/11/sys/netinet/sctp_input.c
==============================================================================
--- stable/11/sys/netinet/sctp_input.c	Mon Apr 16 20:45:21 2018	(r332633)
+++ stable/11/sys/netinet/sctp_input.c	Mon Apr 16 21:17:18 2018	(r332634)
@@ -2617,7 +2617,7 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, in
 		    (sizeof(uint32_t))));
 		diff = now;
 		timevalsub(&diff, &time_expires);
-		if (diff.tv_sec > UINT32_MAX / 1000000) {
+		if ((uint32_t)diff.tv_sec > UINT32_MAX / 1000000) {
 			staleness = UINT32_MAX;
 		} else {
 			staleness = diff.tv_sec * 1000000;



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