@@ -932,14 +932,14 @@ OvsInitVportWithNicParam(POVS_SWITCH_CONTEXT switchContext,
UNREFERENCED_PARAMETER(switchContext);
RtlCopyMemory(vport->permMacAddress, nicParam->PermanentMacAddress,
- sizeof (nicParam->PermanentMacAddress));
+ sizeof (vport->permMacAddress));
RtlCopyMemory(vport->currMacAddress, nicParam->CurrentMacAddress,
- sizeof (nicParam->CurrentMacAddress));
+ sizeof (vport->currMacAddress));
if (nicParam->NicType == NdisSwitchNicTypeSynthetic ||
nicParam->NicType == NdisSwitchNicTypeEmulated) {
RtlCopyMemory(vport->vmMacAddress, nicParam->VMMacAddress,
- sizeof (nicParam->VMMacAddress));
+ sizeof (vport->vmMacAddress));
RtlCopyMemory(&vport->vmName, &nicParam->VmName,
sizeof (nicParam->VmName));
} else {
nicParam->PermanentMacAddress is 32 bytes and vport->permMacAddress is 6 bytes Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com> --- datapath-windows/ovsext/Vport.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)