billvaglienti / ProtoGen

Communications protocol generation software
MIT License
30 stars 16 forks source link

[bugfix] - Prevent calls to verify and init functions that do not exist #77

Closed SchrodingersGat closed 6 years ago

SchrodingersGat commented 6 years ago

Previously, there was no check performed to see if a sub-struct had verify or init values. This meant that verify and init function calls were performed on all sub-structures even if they did not have initial or verification values defined.

This patch provides simple checks to prevent this behavior.