]> git.neil.brown.name Git - history.git/commitdiff
[XFRM_USER]: Fix SKB sizing in xfrm_send_policy_notify().
authorMichal Ludvig <mludvig@suse.cz>
Tue, 24 Feb 2004 16:13:51 +0000 (08:13 -0800)
committerPatrick McHardy <kaber@trash.net>
Tue, 24 Feb 2004 16:13:51 +0000 (08:13 -0800)
net/xfrm/xfrm_user.c

index b02206f33b6af16eaad91905c78dd2dcfd493e72..ae2dae6b5752b17f3c38c47c59995e3ed68225ea 100644 (file)
@@ -1153,7 +1153,7 @@ static int xfrm_send_policy_notify(struct xfrm_policy *xp, int dir, int hard)
 
        len = sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr;
        len = RTA_ALIGN(RTA_LENGTH(len));
-       len += NLMSG_ALIGN(NLMSG_LENGTH(sizeof(struct xfrm_userpolicy_info)));
+       len += NLMSG_ALIGN(NLMSG_LENGTH(sizeof(struct xfrm_user_polexpire)));
        skb = alloc_skb(len, GFP_ATOMIC);
        if (skb == NULL)
                return -ENOMEM;