payload: use proto_unknown for raw protocol header
PATCH 1/1 payload: use proto_unknown for raw protocol header
Otherwise payload.desc would be NULL, which causes the crash in bug 915.
Signed-off-by Yuxuan Shui <[email protected]>
--- src/payload.c | 1 + 1 file changed, 1 insertion(+)
src/payload.c +1 -0
@@ -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
Quoted 1 line · Yuxuan Shui
Otherwise payload.desc would be NULL, which causes the crash in bug 915.
Applied, thanks.