Skip to content

Commit

Permalink
Quick-fixes 1.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
  • Loading branch information
boaks committed Feb 26, 2024
1 parent 3dc62b1 commit d044411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
CC: ["gcc", "clang" ]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: setup
run: |
sudo apt-get update && sudo apt-get install -y libcunit1-dev libtool libtool-bin exuberant-ctags valgrind
Expand Down
4 changes: 2 additions & 2 deletions crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ dtls_ecdsa_verify_sig_hash2(const unsigned char *pub_key, size_t key_size,
(void)result_s;

curve_size = uECC_curve_public_key_size(uecc_curve);

assert(key_size == (unsigned int)curve_size);
dtls_warn("%d != %d\n", (int) key_size, curve_size);
assert((key_size * 2) == (unsigned int)curve_size);
assert(sizeof(sign) >= (unsigned int)curve_size);

/* clear sign to avoid maybe-unitialized warning */
Expand Down

0 comments on commit d044411

Please sign in to comment.