proto: initialize result expression in ethertype_parse()
Pablo Neira Ayuso
maintainerPATCH 1/1 proto: initialize result expression in ethertype_parse()
Otherwise, you may crash in:
nft add rule bridge filter input ether type ip
Reported-by Alvaro Neira Ayuso <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/proto.c | 1 + 1 file changed, 1 insertion(+)
src/proto.c +1 -0
@@ -754,6 +754,7 @@ static struct error_record *ethertype_parse(const struct expr *sym, {struct error_record *erec; + *res =NULL ; erec = sym->dtype->basetype->parse (sym, res);if (erec !=NULL )return erec;
Signature · 1 line
1.7.10.4