packet.c: Wrong pointer conversion in get_data_source_tvb_by_name()

Closes #18517
Solution by Zhao Ziqing
This commit is contained in:
AndersBroman 2023-01-04 12:59:46 +01:00
parent 253e19b8b2
commit d4cd1d9d1d
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ get_data_source_tvb_by_name(packet_info *pinfo, const char *name)
{
GSList *source;
for (source = pinfo->data_src; source; source = source->next) {
struct data_source *this_source = (struct data_source *)source;
struct data_source *this_source = (struct data_source *)source->data;
if (this_source->name && strcmp(this_source->name, name) == 0) {
return this_source->tvb;
}