From: Wilfried Göesgens Date: Thu, 1 Oct 2009 21:12:28 +0000 (+0000) Subject: * if an attachment is empty don't send it to the server X-Git-Tag: v7.86~816 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=9503f7acc22ded5223b7fd48147be5a0e913dc9f;p=citadel.git * if an attachment is empty don't send it to the server --- diff --git a/webcit/messages.c b/webcit/messages.c index b123b8c5a..29eeef64f 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -952,6 +952,8 @@ void post_mime_to_server(void) { it = GetNewHashPos(WCC->attachments, 0); while (GetNextHashPos(WCC->attachments, it, &len, &Key, &vAtt)) { att = (wc_mime_attachment *)vAtt; + if (att->length == 0) + continue; encoded_length = ((att->length * 150) / 100); encoded = malloc(encoded_length); if (encoded == NULL) break;