diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-05-10 01:25:39 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-05-10 01:25:39 -0400 |
commit | 680956e13436e29ebcd85dee776260fd3de89846 (patch) | |
tree | 2d5632b113c4d3f181c645447090b5eddb5a0776 /hmac.cpp | |
parent | 7a8e241c7c0e75329793f36681894f8dab41fb37 (diff) | |
download | cryptopp-git-680956e13436e29ebcd85dee776260fd3de89846.tar.gz |
Clean GCC 10 Analyzer warnings
Diffstat (limited to 'hmac.cpp')
-rw-r--r-- | hmac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ void HMAC_Base::UncheckedSetKey(const byte *userKey, unsigned int keylength, con if (keylength <= blockSize)
{
// hmac.cpp:26:9: runtime error: null pointer passed as argument 2
- if (userKey && keylength)
+ if (AccessIpad() && userKey && keylength)
memcpy(AccessIpad(), userKey, keylength);
}
else
|