Commit 07a5e742 authored by Niels Möller's avatar Niels Möller
Browse files

* src/abstract_crypto.c (crypt_string_unpad): Adjust length

properly (reported by jps).

Rev: src/abstract_crypto.c:1.16
parent 3905e62c
......@@ -160,7 +160,10 @@ crypt_string_unpad(struct crypto_instance *c,
pad = out->data[out->length - 1];
if ( (pad > 0) && (pad <= c->block_size) )
return out;
{
out->length -= pad;
return out;
}
else
{
lsh_string_free(out);
......
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