forked from osmocom/wireshark
ssl-utils: do not check for empty keylog filenames
If ssl.keylog_file is not configured, an empty string is set. In that case, do not attempt to open the keylog file. Change-Id: I2ba4b9dbc7cfb5009d2623c49a129e98734df80f Reviewed-on: https://code.wireshark.org/review/9688 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
38c05061ba
commit
5038efd13f
|
@ -4700,7 +4700,7 @@ ssl_load_keyfile(const gchar *ssl_keylog_filename, FILE **keylog_file,
|
|||
{ "client_random_pms", mk_map->pms},
|
||||
};
|
||||
/* no need to try if no key log file is configured. */
|
||||
if (!ssl_keylog_filename) {
|
||||
if (!ssl_keylog_filename || !*ssl_keylog_filename) {
|
||||
ssl_debug_printf("%s dtls/ssl.keylog_file is not configured!\n",
|
||||
G_STRFUNC);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue