Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: webrtc/base/opensslstreamadapter.cc

Issue 2523533003: Fix TimeCallback used by BoringSSL. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/opensslstreamadapter.cc
diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc
index d2f3bc49781d7d9aa8646df6d0956465b6a92a85..5a7560e112584995044b2c22a2804ed04ec752b5 100644
--- a/webrtc/base/opensslstreamadapter.cc
+++ b/webrtc/base/opensslstreamadapter.cc
@@ -66,7 +66,7 @@ static SrtpCipherMapEntry SrtpCipherMap[] = {
static void TimeCallback(const SSL* ssl, struct timeval* out_clock) {
uint64_t time = TimeNanos();
out_clock->tv_sec = time / kNumNanosecsPerSec;
- out_clock->tv_usec = time / kNumNanosecsPerMicrosec;
+ out_clock->tv_usec = (time % kNumNanosecsPerSec) / kNumNanosecsPerMicrosec;
}
#else // #ifdef OPENSSL_IS_BORINGSSL
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698