vici: Prevent uninitialized memory access when finding VICI_END in message

VICI_END (7) shouldn't be encoded in a message.  However, if we encounter
it, we should at least set `out` accordingly so callers can abort the
enumeration.  By not doing so previously and returning TRUE, callers
might access the possibly uninitialized name/value arguments passed to
the enumerator.
This commit is contained in:
Tobias Brunner
2026-03-13 09:35:28 +01:00
parent 358653d06a
commit e535e13079
+1 -1
View File
@@ -189,7 +189,7 @@ METHOD(enumerator_t, parse_enumerate, bool,
this->list = FALSE;
break;
case VICI_END:
return TRUE;
break;
default:
DBG1(DBG_ENC, "unknown encoding type: %u", type);
return FALSE;