Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Sikora <piotrsikora@google.com>2015-11-11 08:21:52 +0300
committerAdam Langley <agl@google.com>2015-11-12 01:20:19 +0300
commitd7421ebf6cae07051caf657016f160585b64f8a6 (patch)
treed0641e7f10e9468e6d3c1141ae8210611c92ab43 /crypto/hmac
parentd386394aad8a9c41f27cb9bef83dbc03b5aece97 (diff)
Remove condition which always evaluates to true (size_t >= 0).
Found with -Wtype-limits. Change-Id: I5580f179425bc6b09ff2a8559fce121b0cc8ae14 Signed-off-by: Piotr Sikora <piotrsikora@google.com> Reviewed-on: https://boringssl-review.googlesource.com/6463 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/hmac')
-rw-r--r--crypto/hmac/hmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c
index d37a249f..be2dccec 100644
--- a/crypto/hmac/hmac.c
+++ b/crypto/hmac/hmac.c
@@ -129,7 +129,7 @@ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, size_t key_len,
return 0;
}
} else {
- assert(key_len >= 0 && key_len <= sizeof(key_block));
+ assert(key_len <= sizeof(key_block));
memcpy(key_block, key, key_len);
key_block_len = (unsigned)key_len;
}