Skip to content

Commit

Permalink
crypto.c: Support -O3 compiler builds
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
  • Loading branch information
mrdeep1 authored and boaks committed Sep 13, 2023
1 parent f1d47d5 commit 95d02ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ int dtls_ecdh_pre_master_secret(unsigned char *priv_key,
uint32_t result_x[8];
uint32_t result_y[8];

assert(key_size == sizeof(priv));
if (result_len < key_size) {
return -1;
}
Expand Down

0 comments on commit 95d02ee

Please sign in to comment.