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:
parent
dc7772cce2
commit
f57fbb614f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue