Add a return value to hasher_t.allocate_hash()
This commit is contained in:
@@ -44,8 +44,12 @@ static bool build_v3_fingerprint(chunk_t *encoding, va_list args)
|
||||
{
|
||||
e = chunk_skip(e, 1);
|
||||
}
|
||||
hasher->allocate_hash(hasher, n, NULL);
|
||||
hasher->allocate_hash(hasher, e, encoding);
|
||||
if (!hasher->allocate_hash(hasher, n, NULL) ||
|
||||
!hasher->allocate_hash(hasher, e, encoding))
|
||||
{
|
||||
hasher->destroy(hasher);
|
||||
return FALSE;
|
||||
}
|
||||
hasher->destroy(hasher);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user