-- i'm not sure how multipart messages ever worked. the response from nmap with the mime bodystructure is quite long, but we'd only ever copy 4 bytes worth of it and try and use that to parse the data.
This commit is contained in:
@@ -3027,8 +3027,11 @@ GetMimeInfo(ImapSession *session, FetchStruct *FetchRequest)
|
||||
while(ccode != 1000) {
|
||||
if ((ccode > 2001) && (ccode < 2005)) {
|
||||
char *entry;
|
||||
entry = MemMalloc(sizeof(char) * (strlen(session->store.response) + 1));
|
||||
memcpy(entry, session->store.response, sizeof(entry));
|
||||
size_t len = sizeof(char) * (strlen(session->store.response) + 1);
|
||||
|
||||
entry = MemMalloc(len);
|
||||
memcpy(entry, session->store.response, len);
|
||||
|
||||
BongoArrayAppendValue(FetchRequest->messageDetail.mimeInfo, entry);
|
||||
ccode = NMAPReadResponse(session->store.conn, session->store.response, sizeof(session->store.response), FALSE);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user