Patchwork [1/4] netlink: Use the right datatype for verdict

login
register
mail settings
Submitter Tomasz Bursztyka
Date Aug. 2, 2012, 10:31 a.m.
Message ID <1343903495-14486-2-git-send-email-tomasz.bursztyka@linux.intel.com>
Download mbox | patch
Permalink /patch/174719/
State Accepted
Headers show

Comments

Tomasz Bursztyka - Aug. 2, 2012, 10:31 a.m.
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
---
 src/netlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/src/netlink.c b/src/netlink.c
index ebfd744..6459e54 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -898,7 +898,7 @@  static void list_setelem_cb(struct nl_object *obj, void *arg)
 		nld = nfnl_nft_setelem_get_data(nlse);
 
 		data = netlink_alloc_data(&internal_location, nld,
-					  set->datatype->type == EXPR_VERDICT ?
+					  set->datatype->type == TYPE_VERDICT ?
 					  NFT_REG_VERDICT : NFT_REG_1);
 		data->dtype = set->datatype;