summaryrefslogtreecommitdiffstats
path: root/lib/xfrm/sp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xfrm/sp.c')
-rw-r--r--lib/xfrm/sp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c
index fd7585c..99b6a4c 100644
--- a/lib/xfrm/sp.c
+++ b/lib/xfrm/sp.c
@@ -532,7 +532,7 @@ int xfrmnl_sp_parse(struct nlmsghdr *n, struct xfrmnl_sp **result)
sp->ce_msgtype = n->nlmsg_type;
if (n->nlmsg_type == XFRM_MSG_DELPOLICY)
{
- sp_info = (struct xfrm_userpolicy_info*)(nlmsg_data(n) + sizeof (struct xfrm_userpolicy_id) + NLA_HDRLEN);
+ sp_info = (struct xfrm_userpolicy_info*)((char *)nlmsg_data(n) + sizeof (struct xfrm_userpolicy_id) + NLA_HDRLEN);
}
else
{