Use proper argument for sizeof when copying replay state
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 15:00:20 +0000 (17:00 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 15:00:20 +0000 (17:00 +0200)
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c

index 2c439ad..677b655 100644 (file)
@@ -1967,7 +1967,7 @@ METHOD(kernel_ipsec_t, update_sa, status_t,
                {
                        goto failed;
                }
-               memcpy(RTA_DATA(rta), replay, sizeof(replay));
+               memcpy(RTA_DATA(rta), replay, sizeof(struct xfrm_replay_state));
 
                rta = XFRM_RTA_NEXT(rta);
        }