* [PATCH nftables] payload: use proto_unknown for raw protocol header
@ 2014-08-09 13:01 Yuxuan Shui
2014-08-20 13:19 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Yuxuan Shui @ 2014-08-09 13:01 UTC (permalink / raw)
To: pablo; +Cc: tomasz.bursztyka, netfilter-devel, Yuxuan Shui
Otherwise payload.desc would be NULL, which causes the crash in bug 915.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
---
src/payload.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/payload.c b/src/payload.c
index a1785a5..842b1ea 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -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,
--
2.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH nftables] payload: use proto_unknown for raw protocol header
2014-08-09 13:01 [PATCH nftables] payload: use proto_unknown for raw protocol header Yuxuan Shui
@ 2014-08-20 13:19 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2014-08-20 13:19 UTC (permalink / raw)
To: Yuxuan Shui; +Cc: tomasz.bursztyka, netfilter-devel
On Sat, Aug 09, 2014 at 09:01:17PM +0800, Yuxuan Shui wrote:
> Otherwise payload.desc would be NULL, which causes the crash in bug 915.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-20 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 13:01 [PATCH nftables] payload: use proto_unknown for raw protocol header Yuxuan Shui
2014-08-20 13:19 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.