Commit 4527f307 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2107] Change the order of some terms in expression

... just for clarity that the length comes first, and that this is not
some zero terminated buffer.
parent 22d7925d
......@@ -88,7 +88,7 @@ NSEC3Data::create(util::MemorySegment& mem_sgmt, uint8_t hashalg,
const size_t salt_len = salt.size();
void* p = mem_sgmt.allocate(sizeof(NSEC3Data) + salt_len + 1);
void* p = mem_sgmt.allocate(sizeof(NSEC3Data) + 1 + salt_len);
NSEC3Data* const param_data =
new(p) NSEC3Data(holder.release(), hashalg, flags, iterations);
uint8_t* dp = param_data->getSaltBuf();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment