From ce024c1662595f5cebf293e550c4dd7610955c2f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 25 Jun 2012 16:07:40 +0200 Subject: [PATCH] Relay rng return value in nonce plugin --- src/libstrongswan/plugins/nonce/nonce_nonceg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libstrongswan/plugins/nonce/nonce_nonceg.c b/src/libstrongswan/plugins/nonce/nonce_nonceg.c index fd1bbe9d82..0402e3574a 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, -- 2.47.2