commit | 5c5ee702e490d4b6df0b3c70c363409d49635488 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 25 08:05:01 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 25 08:05:01 2021 +0200 |
tree | 16fb68266fc335c313b8c77218acea1a8f9360c2 | |
parent | c88c80d6e68a749ae3b4b414b436ae32ea93f4cf [diff] [blame] |
tree data FEATURE check nanosecond validity
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c index 1fd28df..b104304 100644 --- a/src/tree_data_helpers.c +++ b/src/tree_data_helpers.c
@@ -900,7 +900,7 @@ { char frac_buf[10]; - LY_CHECK_ARG_RET(NULL, ts, str, LY_EINVAL); + LY_CHECK_ARG_RET(NULL, ts, str, ts->tv_nsec <= 999999999, LY_EINVAL); /* convert nanoseconds to fractions of a second */ if (ts->tv_nsec) {