diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-02-16 12:41:02 +0100 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-02-16 14:07:37 +0000 |
commit | 1995e424df1e2364e4c0b0ca5d1e6a3b08c94bc4 (patch) | |
tree | b4bfc920f174d70b1a3979a6d909d0a8194b2f1f /ui | |
parent | 4ca528f5492f5ea695ffc556f683e19a0f62cf11 (diff) | |
download | wireshark-1995e424df1e2364e4c0b0ca5d1e6a3b08c94bc4.tar.gz |
Stack overflow after selecting data when filter is applied that has no results (Wireshark Qt)
Fix
0x00000000004a480e in PacketList::contextMenuEvent (this=0xbbb460, event=0x7fffffffd270)
at ui/qt/packet_list.cpp:485
485 if (cap_file_->edt->pi.ipproto == IP_PROTO_SCTP)
Closed-bug : 9769
Change-Id: I1a657d7208a10c829b2dfe90abb168eff93cd268
Reviewed-on: https://code.wireshark.org/review/224
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/packet_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index d3135b41d0..4bfede1b27 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -482,7 +482,7 @@ void PacketList::contextMenuEvent(QContextMenuEvent *event) // check SCTP if (act->objectName().contains("SCTP")) { - if (cap_file_->edt->pi.ipproto == IP_PROTO_SCTP) + if ((cap_file_ != NULL) && (cap_file_->edt != NULL) && (cap_file_->edt->pi.ipproto == IP_PROTO_SCTP)) { act->setEnabled(true); } |