Skip to content

Commit

Permalink
value: Fix copy/paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 24, 2020
1 parent 5c22b21 commit 9f81d02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/lib/util/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -3669,15 +3669,16 @@ int fr_value_box_bstr_append(TALLOC_CTX *ctx, fr_value_box_t *dst, char const *s
*
* @param[in] ctx Where to allocate any talloc buffers required.
* @param[in] dst value box to append to.
* @param[in] src octets data to append.
* @param[in] len length of octets data.
* @param[in] src string data to append.
* @param[in] tainted Whether src is tainted.
* @return
* - 0 on success.
* - -1 on failure.
*/
int fr_value_box_bstr_append_buffer(TALLOC_CTX *ctx, fr_value_box_t *dst, char const *src, size_t len, bool tainted)
int fr_value_box_bstr_append_buffer(TALLOC_CTX *ctx, fr_value_box_t *dst, char const *src, bool tainted)
{
size_t len;

(void) talloc_get_type_abort_const(src, char);

len = talloc_array_length(src);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/util/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,7 @@ int fr_value_box_bstrdup_buffer(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_dict_a

int fr_value_box_bstr_append(TALLOC_CTX *ctx, fr_value_box_t *dst, char const *src, size_t len, bool tainted);

int fr_value_box_bstr_append_buffer(TALLOC_CTX *ctx, fr_value_box_t *dst, char const *src, size_t len,
bool tainted);
int fr_value_box_bstr_append_buffer(TALLOC_CTX *ctx, fr_value_box_t *dst, char const *src, bool tainted);

void fr_value_box_bstrndup_shallow(fr_value_box_t *dst, fr_dict_attr_t const *enumv,
char const *src, size_t len, bool tainted);
Expand Down

0 comments on commit 9f81d02

Please sign in to comment.