Message ID | 20170522164936.28034-3-phil@nwl.cc |
---|---|
State | RFC |
Delegated to: | Pablo Neira |
Headers | show |
diff --git a/include/exthdr.h b/include/exthdr.h index a2647ee142dcd..a5522ea5b5e5d 100644 --- a/include/exthdr.h +++ b/include/exthdr.h @@ -14,7 +14,7 @@ struct exthdr_desc { const char *name; uint8_t type; - struct proto_hdr_template templates[10]; + struct proto_hdr_template templates[PROTO_HDRS_MAX]; }; extern struct expr *exthdr_expr_alloc(const struct location *loc,
This is for convenience only, so that when translating a payload expression into an exthdr one we can't accidentally address data out of bounds. Signed-off-by: Phil Sutter <phil@nwl.cc> --- include/exthdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)