diff options
author | Noah O'Donoghue <NoahO@users.noreply.github.com> | 2016-12-28 10:39:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-28 10:39:01 +0300 |
commit | a5425bcb4e083f6832b5a654ccdc691129859f64 (patch) | |
tree | 6ab2f512c5999ab0ccf210e811082115b84b4373 /src | |
parent | 4df2eb4f9c2a8cf50e0123496bc20470edc21dc4 (diff) |
Add files via upload
Diffstat (limited to 'src')
-rw-r--r-- | src/Cedar/IPsec_PPP.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cedar/IPsec_PPP.c b/src/Cedar/IPsec_PPP.c index 562b187e..3dc9f24b 100644 --- a/src/Cedar/IPsec_PPP.c +++ b/src/Cedar/IPsec_PPP.c @@ -1749,8 +1749,12 @@ PPP_PACKET *PPPRecvResponsePacket(PPP_SESSION *p, PPP_PACKET *req, USHORT expect if (pp->IsControl && PPP_CODE_IS_REQUEST(pp->Protocol, pp->Lcp->Code))
{
+ // Record current resend because next steps may take a while
+ UINT64 currentresend = next_resend - now;
// Process when the received packet is a request packet
response = PPPProcessRequestPacket(p, pp);
+ // Increase next resend because this may have taken a while
+ next_resend = Tick64() + currentresend;
FreePPPPacket(pp);
if (response == NULL)
|