Fix out-of-bounds error when incorporating email from stdin
[mmh] / sbr / seq_setunseen.c
index d833650..bd57a2c 100644 (file)
@@ -23,6 +23,10 @@ seq_setunseen(struct msgs *mp, int doadd)
        int n;
        char **ap, *cp, *dp;
 
+       if (mp->lowmsg == 0) {
+               return;
+       }
+
        /*
        ** Get the list of sequences for Unseen-Sequence
        ** and split them.