path: root/src
diff options
authorPablo Neira Ayuso <>2014-01-15 21:19:02 +0100
committerPablo Neira Ayuso <>2014-01-16 10:05:21 +0100
commit4a6d434f6fe830e9b6e5663715b605687f1c3897 (patch)
tree305a84f01c59fae0879be7d308ef1d88aa155eb9 /src
parent0bd59cf4daff00e10b4152acad593c548e344a18 (diff)
payload: fix crash when wrong ethernet protocol type is used
nft add rule ip filter output meta protocol xyz counter ^^^ This fix is similar to 4097ad7 ("meta: fix crash when parsing unresolvable mark values"). Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/payload.c b/src/payload.c
index 86d75fa5..decfcd61 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -993,6 +993,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;