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 /capchild | |
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 'capchild')
0 files changed, 0 insertions, 0 deletions