Skip to content

Commit

Permalink
Fixed off-by-one error when trying to cast attribute to ascend
Browse files Browse the repository at this point in the history
This fixes the bug described in #843
  • Loading branch information
qnet-herwin authored and alandekok committed Nov 26, 2014
1 parent 06bb4e7 commit 9f2ccbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/filters.c
Expand Up @@ -968,7 +968,7 @@ int ascend_parse_filter(value_data_t *out, char const *value, size_t len)
* Once the filter is *completelty* parsed, then we will
* over-write it with the final binary filter.
*/
p = talloc_memdup(NULL, value, len);
p = talloc_memdup(NULL, value, len+1);
p[len] = '\0';

/*
Expand Down

0 comments on commit 9f2ccbe

Please sign in to comment.