diff options
author | Michael Tuexen <tuexen@fh-muenster.de> | 2020-05-18 17:25:03 +0200 |
---|---|---|
committer | Michael Tuexen <tuexen@fh-muenster.de> | 2020-05-18 17:25:03 +0200 |
commit | b2138395e5428e83777f95fc23e0d71fe51e1138 (patch) | |
tree | c300a99d8a75ff594c77a86696761f29d08f370a | |
parent | 18a36668a3c0f6a605e19177272af3cd7855cccf (diff) | |
download | usrsctp-b2138395e5428e83777f95fc23e0d71fe51e1138.tar.gz |
Fix logical condition.
-rwxr-xr-x | usrsctplib/netinet/sctputil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usrsctplib/netinet/sctputil.c b/usrsctplib/netinet/sctputil.c index 9a0332b4..d299ba69 100755 --- a/usrsctplib/netinet/sctputil.c +++ b/usrsctplib/netinet/sctputil.c @@ -34,7 +34,7 @@ #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); } |