Imported Upstream version 3.1.0
[debian/amanda] / common-src / protocol.c
index 3cad500f71b56e16d881f7998eeac56a24993f7f..932cfc3ceb7011cbe18a31c2cc61d894572c4f30 100644 (file)
@@ -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);
     }