X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fprotocol.c;h=932cfc3ceb7011cbe18a31c2cc61d894572c4f30;hb=911bfb4415195b5c0a98b8c957caa8968313fd81;hp=3cad500f71b56e16d881f7998eeac56a24993f7f;hpb=79cdc4b6ea8848b21ba4a0e7d2fd3bc401e0bebe;p=debian%2Famanda diff --git a/common-src/protocol.c b/common-src/protocol.c index 3cad500..932cfc3 100644 --- a/common-src/protocol.c +++ b/common-src/protocol.c @@ -602,6 +602,8 @@ s_repwait( } else if(pkt->type == P_PREP) { p->timeout = p->repwait - CURTIME + p->curtime + 1; + if (p->timeout <= 0) + p->timeout = 1; return (PA_CONTPEND); }