diff options
author | NX <nxrighthere@gmail.com> | 2019-11-02 14:12:44 +0500 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2019-11-02 10:12:44 +0100 |
commit | 48e52cec86aadbe1e1eccc29a13047d6f99c9c15 (patch) | |
tree | adca93de338a38fe851d3bc5ed85731d2fe84697 | |
parent | 09768bfcf22f91f6e43f0e692fc612564621d02f (diff) | |
download | usrsctp-48e52cec86aadbe1e1eccc29a13047d6f99c9c15.tar.gz |
Fix crash with HTCP (#319)
-rwxr-xr-x | usrsctplib/netinet/sctp_cc_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usrsctplib/netinet/sctp_cc_functions.c b/usrsctplib/netinet/sctp_cc_functions.c index 788e4dbd..63238298 100755 --- a/usrsctplib/netinet/sctp_cc_functions.c +++ b/usrsctplib/netinet/sctp_cc_functions.c @@ -1962,7 +1962,7 @@ htcp_cong_time(struct htcp *ca) static inline uint32_t htcp_ccount(struct htcp *ca) { - return (htcp_cong_time(ca)/ca->minRTT); + return (ca->minRTT == 0 ? htcp_cong_time(ca) : htcp_cong_time(ca)/ca->minRTT); } static inline void |