Bugfix crash when 'SCTP' -> 'Prepare Filter for this Association' has no associations. Bug 8731 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8731)

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
This commit is contained in:
Michael Mann 2013-05-29 13:50:45 +00:00
parent dc7772cce2
commit f57fbb614f
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{