diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-05-10 18:15:25 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-05-11 16:53:01 +0000 |
commit | 4af23b0d7f1386a57c5812b4c88069638e8f20c8 (patch) | |
tree | 19f06b06cc16efc49058d0826097f9068636a553 /ui/gtk/follow_ssl.c | |
parent | df2dc9222b2e7d05367e3ef5d125100e8a2cb903 (diff) |
Fix display of unidirectional follow TCP/UDP streams
It was broken since 48285bb16b0a5655a47a8a59c34bc98e6bf4cb75
While we are at it, display the streams in the same order as Qt version
Change-Id: I12df1c033dd51b7a162adca3fd36b31af5c074a1
Reviewed-on: https://code.wireshark.org/review/1587
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/gtk/follow_ssl.c')
-rw-r--r-- | ui/gtk/follow_ssl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gtk/follow_ssl.c b/ui/gtk/follow_ssl.c index 0993dfacdb..f12de83bca 100644 --- a/ui/gtk/follow_ssl.c +++ b/ui/gtk/follow_ssl.c @@ -252,15 +252,15 @@ follow_ssl_stream_cb(GtkWidget * w _U_, gpointer data _U_) /* ...and then the server-to-client and client-to-server directions. */ if (follow_info->client_port == stats.port[0]) { - server_hostname = hostname1; - server_port = port1; - client_hostname = hostname0; - client_port = port0; - } else { server_hostname = hostname0; server_port = port0; client_hostname = hostname1; client_port = port1; + } else { + server_hostname = hostname1; + server_port = port1; + client_hostname = hostname0; + client_port = port0; } single_direction_format = "%s:%s " UTF8_RIGHTWARDS_ARROW " %s:%s (%u bytes)"; |