RTP dialogs fix: sigv occurs when dialogs are open when no cap file is open
Patch fixes the issue which causes sigv fault when user tries to open VoIP Analysis or RTP Streams dialog and no capture file is open.
This commit is contained in:
parent
a256ad68d6
commit
b9e5b58ee9
|
@ -301,7 +301,7 @@ RtpStreamDialog::RtpStreamDialog(QWidget &parent, CaptureFile &cf) :
|
|||
tapinfo_.mode = TAP_ANALYSE;
|
||||
|
||||
register_tap_listener_rtpstream(&tapinfo_, NULL, show_tap_registration_error);
|
||||
if (cap_file_.capFile()->dfilter) {
|
||||
if (cap_file_.isValid() && cap_file_.capFile()->dfilter) {
|
||||
// Activate display filter checking
|
||||
tapinfo_.apply_display_filter = true;
|
||||
ui->displayFilterCheckBox->setChecked(true);
|
||||
|
|
|
@ -96,7 +96,7 @@ VoipCallsDialog::VoipCallsDialog(QWidget &parent, CaptureFile &cf, bool all_flow
|
|||
shown_callsinfos_ = g_queue_new();
|
||||
|
||||
voip_calls_init_all_taps(&tapinfo_);
|
||||
if (cap_file_.capFile()->dfilter) {
|
||||
if (cap_file_.isValid() && cap_file_.capFile()->dfilter) {
|
||||
// Activate display filter checking
|
||||
tapinfo_.apply_display_filter = true;
|
||||
ui->displayFilterCheckBox->setChecked(true);
|
||||
|
|
Loading…
Reference in New Issue