diff options
author | Thomas Graf <tgr@deb.localdomain> | 2008-03-05 13:10:09 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@deb.localdomain> | 2008-03-05 13:10:09 (GMT) |
commit | 6a7606fa293dbf0679e53fda164cde35c35a449f (patch) | |
tree | a6e0e3224a368492990f80c4819333542a6559d0 /lib/netfilter | |
parent | cca3921f15ee2e7414a24222c635f0ad47e9547e (diff) | |
download | libnl-6a7606fa293dbf0679e53fda164cde35c35a449f.zip libnl-6a7606fa293dbf0679e53fda164cde35c35a449f.tar.gz libnl-6a7606fa293dbf0679e53fda164cde35c35a449f.tar.bz2 |
Initialize message type list to avoid overrun
Diffstat (limited to 'lib/netfilter')
-rw-r--r-- | lib/netfilter/log.c | 3 | ||||
-rw-r--r-- | lib/netfilter/queue.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/netfilter/log.c b/lib/netfilter/log.c index e9cbbce..41a131c 100644 --- a/lib/netfilter/log.c +++ b/lib/netfilter/log.c @@ -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) diff --git a/lib/netfilter/queue.c b/lib/netfilter/queue.c index c056eef..2bd719a 100644 --- a/lib/netfilter/queue.c +++ b/lib/netfilter/queue.c @@ -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) |