]> granicus.if.org Git - libnl/commitdiff
Initialize message type list to avoid overrun
authorThomas Graf <tgr@deb.localdomain>
Wed, 5 Mar 2008 13:10:09 +0000 (14:10 +0100)
committerThomas Graf <tgr@deb.localdomain>
Wed, 5 Mar 2008 13:10:09 +0000 (14:10 +0100)
lib/netfilter/log.c
lib/netfilter/queue.c

index e9cbbce0c3fca9226a2995aa5e493d81217f290b..41a131cc6c671bbc7aa95a291e51c29997c02e3e 100644 (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)
index c056eefed7044fc9ef3e864d5a9190d7e8b96103..2bd719a0a721bf8d7855ba7a3e9efdd86d084071 100644 (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)