Commit b16fbf54 authored by Geoff Simmons's avatar Geoff Simmons

Assert that key_insert() always inserts a new key.

parent 2cc4dc7e
......@@ -394,7 +394,7 @@ key_insert(VRT_CTX, uint8_t *id, uint8_t idlen, const uint8_t *key,
memcpy(k->key, key, AES128_KEYLEN);
memcpy(k->id, id, idlen);
k->idlen = idlen;
VRBT_INSERT(key_tree, tree_h, k);
AZ(VRBT_INSERT(key_tree, tree_h, k));
return (k);
}
......
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