summaryrefslogtreecommitdiff
path: root/wsutil/filesystem.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-06-29 13:13:55 +0200
committerPeter Wu <peter@lekensteyn.nl>2015-06-29 22:57:55 +0000
commit1e511d830eac041815db3287934b6b84370b8f16 (patch)
tree5421ca853ad0d57a383f7623dd6a0292f2ad6c64 /wsutil/filesystem.c
parenta36db750e4b9002c91899c7a9b774401f2de1b81 (diff)
downloadwireshark-1e511d830eac041815db3287934b6b84370b8f16.tar.gz
ssl: test for file type before reading key file
ftell() is undefined for directories. In practice, it will report 0x7fffffffffffffff on an ext4 filesystem. Ensure that the given key file is not a directory. By the way, this is the only user of ftell that is affected. Bug: 11268 Change-Id: Iaecd42c9b60da9e7945703a794601773749f2d97 Reviewed-on: https://code.wireshark.org/review/9213 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wsutil/filesystem.c')
0 files changed, 0 insertions, 0 deletions