Skip to contentSkip to conversation

payload: use proto_unknown for raw protocol header

PATCH Applied Yuxuan Shui 2 participants 2 messages Aug 9, 2014 – Aug 20, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 payload: use proto_unknown for raw protocol header

Otherwise payload.desc would be NULL, which causes the crash in bug 915.

---
 src/payload.c | 1 +
 1 file changed, 1 insertion(+)
src/payload.c +1 -0
index a1785a5..842b1ea 100644
@@ -106,6 +106,7 @@ struct expr *payload_expr_alloc(const struct location *loc,
 	} else {
 		tmpl = &proto_unknown_template;
 		base = PROTO_BASE_INVALID;
+		desc = &proto_unknown;
 	}
 
 	expr = expr_alloc(loc, &payload_expr_ops, tmpl->dtype,
Signature · 1 line
2.0.4
maintainer Applied
#1 lore raw
Quoted 1 line · Yuxuan Shui

Otherwise payload.desc would be NULL, which causes the crash in bug 915.

Applied, thanks.