Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreadman committed Feb 8, 2025
2 parents bf9c7c7 + 3b7c0e7 commit fbac5cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions epan/dissectors/packet-smb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -12555,6 +12555,10 @@ dissect_smb2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, bool fi
if (si->flags & SMB2_FLAGS_RESPONSE) {
si->status = tvb_get_letohl(tvb, offset);
proto_tree_add_item(header_tree, hf_smb2_nt_status, tvb, offset, 4, ENC_LITTLE_ENDIAN);
if (si->status) {
proto_item_append_text(item, ", %s",
val_to_str_ext(si->status, &NT_errors_ext, "Unknown (0x%08X)"));
}
offset += 4;
} else {
si->status = 0;
Expand All @@ -12567,6 +12571,9 @@ dissect_smb2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, bool fi
/* opcode */
si->opcode = tvb_get_letohs(tvb, offset);
proto_tree_add_item(header_tree, hf_smb2_cmd, tvb, offset, 2, ENC_LITTLE_ENDIAN);
proto_item_append_text(item, ", %s %s",
smb2_cmd_vals[si->opcode].strptr,
si->flags & SMB2_FLAGS_RESPONSE ? "Response" : "Request");
offset += 2;

/* credits */
Expand Down Expand Up @@ -12605,6 +12612,7 @@ dissect_smb2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, bool fi
si->msg_id = tvb_get_letoh64(tvb, offset);
ssi_key.msg_id = si->msg_id;
proto_tree_add_item(header_tree, hf_smb2_msg_id, tvb, offset, 8, ENC_LITTLE_ENDIAN);
proto_item_append_text(item, "MessageId %" PRIu64, (uint64_t)si->msg_id);
offset += 8;

/* Tree ID and Session ID */
Expand Down
2 changes: 1 addition & 1 deletion ui/qt/models/atap_data_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ QVariant EndpointDataModel::data(const QModelIndex &idx, int role) const
}
return Qt::AlignRight;
} else if (role == ATapDataModel::DISPLAY_FILTER) {
return QString(get_endpoint_filter(item));
return gchar_free_to_qstring(get_endpoint_filter(item));
} else if (role == ATapDataModel::ROW_IS_FILTERED) {
return (bool)item->filtered && showTotalColumn();
}
Expand Down
2 changes: 1 addition & 1 deletion ui/qt/widgets/traffic_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ QMenu * TrafficTree::createActionSubMenu(FilterAction::Action cur_action, QModel
}
foreach (FilterAction::ActionDirection ad, FilterAction::actionDirections()) {
FilterAction *fa = new FilterAction(subsubmenu, cur_action, at, ad);
QString filter = get_conversation_filter(conv_item, (conv_direction_e) fad_to_cd_[fa->actionDirection()]);
QString filter = gchar_free_to_qstring(get_conversation_filter(conv_item, (conv_direction_e) fad_to_cd_[fa->actionDirection()]));
fa->setProperty("filter", filter);
subsubmenu->addAction(fa);
connect(fa, &QAction::triggered, this, &TrafficTree::useFilterAction);
Expand Down

0 comments on commit fbac5cb

Please sign in to comment.