Skip to content

Commit 95d02ee

Browse files
mrdeep1boaks
authored andcommitted
crypto.c: Support -O3 compiler builds
Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
1 parent f1d47d5 commit 95d02ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crypto.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ int dtls_ecdh_pre_master_secret(unsigned char *priv_key,
444444
uint32_t result_x[8];
445445
uint32_t result_y[8];
446446

447+
assert(key_size == sizeof(priv));
447448
if (result_len < key_size) {
448449
return -1;
449450
}

0 commit comments

Comments
 (0)