Skip to content
Snippets Groups Projects
Commit a29a3efc authored by rswindell's avatar rswindell
Browse files

Use a different source for the message number in smb_getmsghdr() failure

error log message as the header is zeroed in this function and thus the
message number previously read from the index, lost (zeroed) and useless.
parent 7da23f09
No related branches found
No related tags found
No related merge requests found
......@@ -1303,7 +1303,7 @@ static void pop3_thread(void* arg)
smb_unlockmsghdr(&smb,&msg);
if(i!=0) {
lprintf(LOG_ERR,"%04d !POP3 <%s> ERROR %d (%s) line %u, msg #%u"
,socket, user.alias, i, smb.last_error, __LINE__, msg.hdr.number);
,socket, user.alias, i, smb.last_error, __LINE__, mail[l].number);
break;
}
bytes+=smb_getmsgtxtlen(&msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment