diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-01-04 17:46:47 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2024-01-04 17:46:47 +0100 |
commit | 921386390effa5484fd11c7d36c1dfa84fd608a6 (patch) | |
tree | 355880e093a5538429b3e8a68d114a7aa4acf69c /tests | |
parent | 4f0cf2eb43c73080789579f060a327d3d90fb0dc (diff) | |
download | pam-921386390effa5484fd11c7d36c1dfa84fd608a6.tar.gz pam-921386390effa5484fd11c7d36c1dfa84fd608a6.tar.bz2 pam-921386390effa5484fd11c7d36c1dfa84fd608a6.zip |
pam_timestamp: fix condition order
Check the array index first before dereferencing the array.
Also convert the index type to size_t to avoid casting.
Reported by cppcheck.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions