Skip to content

Commit

Permalink
oscore_cbor.c: Fix bad scan-build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed May 9, 2024
1 parent e599e25 commit b14521d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/oscore/oscore_cbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ oscore_cbor_get_element_size(const uint8_t **buffer, size_t *buf_len) {
uint8_t control = get_byte(buffer, buf_len) & 0x1f;
size_t size;

/* Move to data payload, or extended count */
get_byte_inc(buffer, buf_len);
if (control < 0x18) {
size = (uint64_t)control;
} else {
Expand Down

0 comments on commit b14521d

Please sign in to comment.