Use proper argument for sizeof when copying replay state
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user