Bug in imap4d/util.c(util_msgset) --> '*' was not deal it.
Showing
2 changed files
with
9 additions
and
7 deletions
1 | 2001-06-11 Alain Magloire | ||
2 | |||
3 | * imap4d/util.c (util_msgset): When '*' was define in the | ||
4 | set it was not added to the count. | ||
5 | Bug reported by Jakob Kaivo. | ||
6 | |||
1 | 2001-06-09 Alain Magloire | 7 | 2001-06-09 Alain Magloire |
2 | 8 | ||
3 | * mailbox2/pop3/pop3_open.c: Remove for pop3_connect.c | 9 | * mailbox2/pop3/pop3_open.c: Remove for pop3_connect.c | ... | ... |
... | @@ -333,17 +333,13 @@ util_msgset (char *s, size_t **set, int *n, int isuid) | ... | @@ -333,17 +333,13 @@ util_msgset (char *s, size_t **set, int *n, int isuid) |
333 | */ | 333 | */ |
334 | case '*': | 334 | case '*': |
335 | { | 335 | { |
336 | val = max; | ||
337 | s++; | ||
338 | status = add2set (set, n, val); | ||
336 | if (status != 0) | 339 | if (status != 0) |
337 | { | ||
338 | if (*set) | ||
339 | free (*set); | ||
340 | *n = 0; | ||
341 | return status; | 340 | return status; |
342 | } | 341 | } |
343 | val = max; | ||
344 | s++; | ||
345 | break; | 342 | break; |
346 | } | ||
347 | 343 | ||
348 | /* IMAP also allows a set of noncontiguous numbers to be specified | 344 | /* IMAP also allows a set of noncontiguous numbers to be specified |
349 | with the ',' character: | 345 | with the ',' character: | ... | ... |
-
Please register or sign in to post a comment