X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fprotocol.c;h=932cfc3ceb7011cbe18a31c2cc61d894572c4f30;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=3cad500f71b56e16d881f7998eeac56a24993f7f;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;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); }