aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/nonce/nonce_nonceg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstrongswan/plugins/nonce/nonce_nonceg.c b/src/libstrongswan/plugins/nonce/nonce_nonceg.c
index fd1bbe9d8..0402e3574 100644
--- a/src/libstrongswan/plugins/nonce/nonce_nonceg.c
+++ b/src/libstrongswan/plugins/nonce/nonce_nonceg.c
@@ -38,15 +38,13 @@ struct private_nonce_nonceg_t {
METHOD(nonce_gen_t, get_nonce, bool,
private_nonce_nonceg_t *this, size_t size, u_int8_t *buffer)
{
- this->rng->get_bytes(this->rng, size, buffer);
- return TRUE;
+ return this->rng->get_bytes(this->rng, size, buffer);
}
METHOD(nonce_gen_t, allocate_nonce, bool,
private_nonce_nonceg_t *this, size_t size, chunk_t *chunk)
{
- this->rng->allocate_bytes(this->rng, size, chunk);
- return TRUE;
+ return this->rng->allocate_bytes(this->rng, size, chunk);
}
METHOD(nonce_gen_t, destroy, void,