Fix logical condition.
#ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 360885 2020-05-10 22:54:30Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 361214 2020-05-18 15:02:15Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -3044,7 +3044,7 @@ sctp_calculate_rto(struct sctp_tcb *stcb,
(void)SCTP_GETTIME_TIMEVAL(&now);
}
if ((old->tv_sec > now.tv_sec) ||
- ((old->tv_sec == now.tv_sec) && (old->tv_sec > now.tv_sec))) {
+ ((old->tv_sec == now.tv_sec) && (old->tv_usec > now.tv_usec))) {
/* The starting point is in the future. */
return (0);
}
