diff options
Diffstat (limited to 'Source/charon/transforms/prf_plus.c')
-rw-r--r-- | Source/charon/transforms/prf_plus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/charon/transforms/prf_plus.c b/Source/charon/transforms/prf_plus.c index 2469fdebe..5b3e7df2f 100644 --- a/Source/charon/transforms/prf_plus.c +++ b/Source/charon/transforms/prf_plus.c @@ -76,7 +76,7 @@ static status_t get_bytes(private_prf_plus_t *this, size_t length, u_int8_t *buf appending_chunk.ptr = &(this->appending_octet); appending_chunk.len = 1; - while (length) + while (length > 0) { /* still more to do... */ if (this->buffer.len == this->given_out) { /* no bytes left in buffer, get next*/ |