commit | d631510db5d1c6b452b57cf7af710059ceff687a | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Feb 02 15:26:34 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Feb 08 09:13:26 2021 +0100 |
tree | 91aaacf24c5b2d5c262475d4c0c32b33a43264a8 | |
parent | b6ecaeaa0391745ec9054cc4351ac4049317576c [diff] [blame] |
YANG parser MAINTENANCE clarify and secure the code
diff --git a/src/parser_yang.c b/src/parser_yang.c index 6c3f985..857197a 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -2253,6 +2253,9 @@ } *max = num; + } else { + /* unbounded */ + *max = 0; } free(buf);