summaryrefslogtreecommitdiff
path: root/hmac.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-05-10 01:25:39 -0400
committerJeffrey Walton <noloader@gmail.com>2020-05-10 01:25:39 -0400
commit680956e13436e29ebcd85dee776260fd3de89846 (patch)
tree2d5632b113c4d3f181c645447090b5eddb5a0776 /hmac.cpp
parent7a8e241c7c0e75329793f36681894f8dab41fb37 (diff)
downloadcryptopp-git-680956e13436e29ebcd85dee776260fd3de89846.tar.gz
Clean GCC 10 Analyzer warnings
Diffstat (limited to 'hmac.cpp')
-rw-r--r--hmac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hmac.cpp b/hmac.cpp
index 3f8aad46..7648ea9e 100644
--- a/hmac.cpp
+++ b/hmac.cpp
@@ -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