If that flag is set, the TLV in question is empty, so don't process
anything further - and if it's *not* empty, report an error.
Thanks to Maks Naumov for finding this.
EXTRACT_16BITS(&otlv->length)));
}
/* empty TLVs like COMMIT and TRCOMMIT are empty, we stop here .. */
- if (!ops->flags & ZERO_TTLV) {
+ if (ops->flags & ZERO_TTLV) {
if (tll != 0) /* instead of "if (tll)" - for readability .. */
ND_PRINT((ndo, "%s: Illegal - MUST be empty\n", ops->s));
return rc;