Commit de7dbd0a authored by rswindell's avatar rswindell
Browse files

Fix crash in create_netmail(() introduced in last commit, when processing

area-fix requests or generating any netmail not from the mail base.
parent 2d05950a
......@@ -428,6 +428,8 @@ size_t fwrite_crlf(char* buf, size_t len, FILE* fp)
BOOL fidoctrl_line_exists(smbmsg_t* msg, const char* prefix)
if(msg==NULL || prefix==NULL)
return FALSE;
for(int i=0; i<msg->total_hfields; i++) {
if(msg->hfield[i].type == FIDOCTRL
&& strncmp((char*)msg->hfield_dat[i], prefix, strlen(prefix)) == 0)
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