git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7772c
)
Bugfix crash when 'SCTP' -> 'Prepare Filter for this Association' has no associations...
author
Michael Mann
<mmann78@netscape.net>
Wed, 29 May 2013 13:50:45 +0000
(13:50 -0000)
committer
Michael Mann
<mmann78@netscape.net>
Wed, 29 May 2013 13:50:45 +0000
(13:50 -0000)
Dialog (wants to) pop up noting no associations, but sctp_set_filter() wants to press on assuming there is an association. Added NULL check to prevent assumption.
svn path=/trunk/; revision=49610
ui/gtk/sctp_assoc_analyse.c
patch
|
blob
|
history
diff --git
a/ui/gtk/sctp_assoc_analyse.c
b/ui/gtk/sctp_assoc_analyse.c
index 4bf749808d7d28b97449cfbc1b6c56eb1b6c17c3..2a986445eefe01f46542e9bd887d453cac8a85da 100644
(file)
--- a/
ui/gtk/sctp_assoc_analyse.c
+++ b/
ui/gtk/sctp_assoc_analyse.c
@@
-422,6
+422,8
@@
sctp_set_filter(GtkButton *button _U_, struct sctp_analyse *u_data)
gchar *filter_string = NULL;
selected_stream = u_data->assoc;
+ if (selected_stream == NULL)
+ return;
if (selected_stream->check_address == FALSE)
{