Initialize message type list to avoid overrun

This commit is contained in:
Thomas Graf 2008-03-05 14:10:09 +01:00
parent cca3921f15
commit 6a7606fa29
2 changed files with 6 additions and 0 deletions

View file

@ -228,6 +228,9 @@ int nfnl_log_delete(struct nl_handle *nlh, const struct nfnl_log *log)
static struct nl_cache_ops nfnl_log_ops = {
.co_name = "netfilter/log",
.co_obj_ops = &log_obj_ops,
.co_msgtypes = {
END_OF_MSGTYPES_LIST,
},
};
static void __init log_init(void)

View file

@ -218,6 +218,9 @@ int nfnl_queue_delete(struct nl_handle *nlh, const struct nfnl_queue *queue)
static struct nl_cache_ops nfnl_queue_ops = {
.co_name = "netfilter/queue",
.co_obj_ops = &queue_obj_ops,
.co_msgtypes = {
END_OF_MSGTYPES_LIST,
},
};
static void __init nfnl_queue_init(void)