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);