remove assumption about value of M constant

This commit is contained in:
Oswald Buddenhagen 2013-11-02 15:04:03 +01:00
parent a893cba483
commit b10fd0c21c

View File

@ -1275,7 +1275,7 @@ box_loaded( int sts, void *aux )
/* a) & b.3) / c.3) */
if (svars->chan->ops[t] & OP_FLAGS) {
sflags = srec->msg[1-t]->flags;
if ((srec->status & (S_EXPIRE|S_EXPIRED)) && !t)
if ((srec->status & (S_EXPIRE|S_EXPIRED)) && (t == M))
sflags &= ~F_DELETED;
srec->aflags[t] = sflags & ~srec->flags;
srec->dflags[t] = ~sflags & srec->flags;