aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl-utils.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-09-24 00:31:49 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-09-24 00:31:49 +0000
commit6d255f86330289ca58d4cd394d61773725ac08d8 (patch)
tree880d2388ee9a00c543e32aef995b48d7105d11f4 /epan/dissectors/packet-ssl-utils.c
parentd456079b7e928007d4130ffb4ab5ccf49c98481e (diff)
From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6596 :
Allow reading SSL keylog files with carriage returns. svn path=/trunk/; revision=52197
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.c')
-rw-r--r--epan/dissectors/packet-ssl-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c
index da3ee6683a..11a0fc80b6 100644
--- a/epan/dissectors/packet-ssl-utils.c
+++ b/epan/dissectors/packet-ssl-utils.c
@@ -4194,6 +4194,10 @@ ssl_keylog_lookup(SslDecryptSession* ssl_session,
line[bytes_read - 1] = 0;
bytes_read--;
}
+ if (bytes_read > 0 && line[bytes_read - 1] == '\r') {
+ line[bytes_read - 1] = 0;
+ bytes_read--;
+ }
ssl_debug_printf(" checking keylog line: %s\n", line);