aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_analysis_dialog.cpp
diff options
context:
space:
mode:
authorJirka Novak <j.novak@netsystem.cz>2021-04-10 13:58:25 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-04-10 13:17:54 +0000
commite35b6d48593e0b3a817c6759941228a5f5d8d480 (patch)
tree03ea3bc643b9eba6289e57dfd344adad2efdf0d1 /ui/qt/rtp_analysis_dialog.cpp
parentd852c1f38e3a1fc3dff33c0ff27cafda08f55ae8 (diff)
RTP Analysis: Fix of use of uninitialized structure
Fixes crash when RTP Analysis was called directly from Telephony menu.
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.cpp')
-rw-r--r--ui/qt/rtp_analysis_dialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index 17c5517fac..0f57c35a9d 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -956,6 +956,9 @@ void RtpAnalysisDialog::findRtpStreams()
dfilter_t *sfcode;
gchar *err_msg;
+ memset(&fwd_info, 0, sizeof(rtpstream_info_t));
+ memset(&rev_info, 0, sizeof(rtpstream_info_t));
+
/* Try to get the hfid for "rtp.ssrc". */
int hfid_rtp_ssrc = proto_registrar_get_id_byname("rtp.ssrc");
if (hfid_rtp_ssrc == -1) {
@@ -1056,7 +1059,7 @@ void RtpAnalysisDialog::findRtpStreams()
}
}
- addRtpStreams(stream_infos);
+ addRtpStreamsPrivate(stream_infos);
}
void RtpAnalysisDialog::showStreamMenu(QPoint pos)