Skip to content
Snippets Groups Projects
Commit 68ed0ebd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If the msg type is 'File', the subject is the Filename, so say so in the dump

parent 22f5dd46
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6464 passed
...@@ -103,6 +103,12 @@ str_list_t smb_msghdr_str_list(smbmsg_t* msg) ...@@ -103,6 +103,12 @@ str_list_t smb_msghdr_str_list(smbmsg_t* msg)
,smb_hfieldtype(msg->hfield[i].type) ,smb_hfieldtype(msg->hfield[i].type)
,ctime_r(&tt, tmp)); ,ctime_r(&tt, tmp));
break; break;
case SUBJECT:
if(msg->hdr.type == SMB_MSG_TYPE_FILE) {
strListAppendFormat(&list, HFIELD_NAME_FMT "%s", "Filename", msg->hfield_dat[i]);
break;
}
// Fall-through
default: default:
strListAppendFormat(&list, HFIELD_NAME_FMT "%s" strListAppendFormat(&list, HFIELD_NAME_FMT "%s"
,smb_hfieldtype(msg->hfield[i].type) ,smb_hfieldtype(msg->hfield[i].type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment