Use proper offset when adding mark attribute in kernel-netlink plugin
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Oct 2012 09:11:29 +0000 (11:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 15 Oct 2012 09:11:29 +0000 (11:11 +0200)
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c

index f09b72a..a6aa34b 100644 (file)
@@ -1570,7 +1570,7 @@ static void get_replay_state(private_kernel_netlink_ipsec_t *this,
        if (mark.value)
        {
                struct xfrm_mark *mrk;
        if (mark.value)
        {
                struct xfrm_mark *mrk;
-               struct rtattr *rthdr = XFRM_RTA(hdr, struct xfrm_usersa_id);
+               struct rtattr *rthdr = XFRM_RTA(hdr, struct xfrm_aevent_id);
 
                rthdr->rta_type = XFRMA_MARK;
                rthdr->rta_len = RTA_LENGTH(sizeof(struct xfrm_mark));
 
                rthdr->rta_type = XFRMA_MARK;
                rthdr->rta_len = RTA_LENGTH(sizeof(struct xfrm_mark));