diff options
author | Tomasz Moń <desowin@gmail.com> | 2019-09-21 20:43:18 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-09-22 18:23:28 +0000 |
commit | bd439c909045de71f3ab6907ff3f2e74682e7f3a (patch) | |
tree | 174407b475b71439d011f1505e4f9496b26c6b18 /debian | |
parent | 001de56561565a65400e38f169a7aa19034ceb3f (diff) |
Win32: Do not reload TLS keylog file on each packet
On Windows, fstat() and stat() sets st_dev to different value depending
on whether it was called with file handle or file path. If file handle
was used, the st_dev is simply the file handle casted to unsigned.
If file path was used, then st_dev corresponds to drive letter
(A=0, B=1, C=2, ...).
Compare the files using the file index information retrieved by
GetFileInformationByHandle(). When compiled in configuration that
supports FILE_ID_INFO, the code first tries to obtain 128-bit FILE_ID_INFO
and if that fails, fallback to GetFileInformationByHandle().
Bug: 16059
Change-Id: I5f8d8d8127337891ef9907c291e550b1d17aabbb
Reviewed-on: https://code.wireshark.org/review/34573
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/libwsutil0.symbols | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/libwsutil0.symbols b/debian/libwsutil0.symbols index 2e64ef3c18..ccbf06bd46 100644 --- a/debian/libwsutil0.symbols +++ b/debian/libwsutil0.symbols @@ -62,6 +62,7 @@ libwsutil.so.0 libwsutil0 #MINVER# delete_persconffile_profile@Base 1.12.0~rc1 deregister_codec@Base 3.1.0 file_exists@Base 1.12.0~rc1 + file_needs_reopen@Base 3.0.6 file_open_error_message@Base 1.12.0~rc1 file_write_error_message@Base 1.12.0~rc1 files_identical@Base 1.12.0~rc1 |