vppinfra: add clib_bihash_get_bucket
[vpp.git] / build / external / patches / quicly_0.0.5-vpp / 0002-quicly-rtt-time-skew.patch
1 diff --git a/lib/quicly.c b/lib/quicly.c
2 index 95d5f13..3f4fd18 100644
3 --- a/lib/quicly.c
4 +++ b/lib/quicly.c
5 @@ -351,7 +351,10 @@ static __thread int64_t now;
6  
7  static void update_now(quicly_context_t *ctx)
8  {
9 -    now = ctx->now->cb(ctx->now);
10 +  int64_t newval = ctx->now->cb(ctx->now);
11 +
12 +  if (now < newval)
13 +    now = newval;
14  }
15  
16  /**