aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rtp_stream_dlg.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2010-12-22 20:24:51 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2010-12-22 20:24:51 +0000
commit3c9cfef565a362375a397d30d215ea18c4c77765 (patch)
treed5c22534ba25cd27bcbe54d69e6e8b8bb3fba425 /gtk/rtp_stream_dlg.c
parentdf6e1f362b5380788f07601622f9765f310c76d4 (diff)
downloadwireshark-3c9cfef565a362375a397d30d215ea18c4c77765.tar.gz
wireshark-3c9cfef565a362375a397d30d215ea18c4c77765.tar.bz2
wireshark-3c9cfef565a362375a397d30d215ea18c4c77765.zip
Fix for bug 5513:
Prepare filter must take Fwd and Rev part in combined filter. svn path=/trunk/; revision=35247
Diffstat (limited to 'gtk/rtp_stream_dlg.c')
-rw-r--r--gtk/rtp_stream_dlg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/rtp_stream_dlg.c b/gtk/rtp_stream_dlg.c
index 26184c9243..0f93cf60c4 100644
--- a/gtk/rtp_stream_dlg.c
+++ b/gtk/rtp_stream_dlg.c
@@ -428,13 +428,13 @@ rtpstream_on_filter(GtkButton *button _U_, gpointer user_data _U_)
selected_stream_rev->ssrc);
filter_string = filter_string_rev;
+ }
- if (selected_stream_fwd)
- {
- filter_string = g_strdup_printf("%s || %s", filter_string, filter_string_rev);
- g_free(filter_string_fwd);
- g_free(filter_string_rev);
- }
+ if ((selected_stream_fwd) && (selected_stream_rev))
+ {
+ filter_string = g_strdup_printf("%s || %s", filter_string_fwd, filter_string_rev);
+ g_free(filter_string_fwd);
+ g_free(filter_string_rev);
}
gtk_entry_set_text(GTK_ENTRY(main_display_filter_widget), filter_string);