From: Tobias Brunner Date: Mon, 25 Jun 2012 14:07:40 +0000 (+0200) Subject: Relay rng return value in nonce plugin X-Git-Tag: 5.0.1~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce024c1662595f5cebf293e550c4dd7610955c2f;p=thirdparty%2Fstrongswan.git Relay rng return value in nonce plugin --- 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,