Commit e154cba1 authored by JerikoOne's avatar JerikoOne Committed by Kevin J. McCarthy

Ensure UID in fetch_uidl.

parent 4d0cd265
......@@ -152,6 +152,10 @@ static int fetch_uidl (char *line, void *data)
endp++;
memmove(line, endp, strlen(endp) + 1);
/* uid must be at least be 1 byte */
if (strlen(line) == 0)
return -1;
for (i = 0; i < ctx->msgcount; i++)
if (!mutt_strcmp (line, ctx->hdrs[i]->data))
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment