diff options
author | Razvan Becheriu <razvan@isc.org> | 2023-06-28 09:59:43 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2023-06-28 17:29:59 +0200 |
commit | e58098be970f8671a512832fd29944c0745d7716 (patch) | |
tree | b676fb8432bae4684a60cee3d060a5aeb8a2684a /src/lib/dns | |
parent | [#2942] addressed review comments (diff) | |
download | kea-e58098be970f8671a512832fd29944c0745d7716.tar.xz kea-e58098be970f8671a512832fd29944c0745d7716.zip |
[#2831] fixed static analizer warnings
Diffstat (limited to 'src/lib/dns')
-rw-r--r-- | src/lib/dns/nsec3hash.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dns/nsec3hash.cc b/src/lib/dns/nsec3hash.cc index 6513f2354e..64030ff62a 100644 --- a/src/lib/dns/nsec3hash.cc +++ b/src/lib/dns/nsec3hash.cc @@ -69,6 +69,10 @@ public: static_cast<unsigned int>(algorithm_)); } + if (salt_data == NULL) { + isc_throw(BadValue, "salt data is NULL"); + } + if (salt_length > 0) { salt_data_ = static_cast<uint8_t*>(std::malloc(salt_length)); if (salt_data_ == NULL) { |