Commit b6262ef2 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Avoid a very unlikely overflow.

parent bd0b7f29
...@@ -255,7 +255,7 @@ do_resend() ...@@ -255,7 +255,7 @@ do_resend()
break; break;
default: abort(); default: abort();
} }
resend->delay *= 2; resend->delay = MIN(0xFFFF, resend->delay * 2);
resend->max--; resend->max--;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment