Skip to content

Commit

Permalink
Another -1 error indicator (CID #1604616)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Dec 30, 2024
1 parent 39a1164 commit bc34c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ int fr_value_box_to_key(uint8_t **out, size_t *outlen, fr_value_box_t const *val
fr_dbuff_init(&dbuff, *out, *outlen >> 3);

slen = fr_value_box_to_network(&dbuff, value);
if (slen < 0) return slen;
if (slen < 0) return -1;
*outlen = slen * 8; /* bits not bytes */
break;

Expand Down

0 comments on commit bc34c75

Please sign in to comment.