[ovs-dev] [PATCH] datapath-windows: minor fixes in GetNICAlias()
Nithin Raju
nithin at vmware.com
Tue Apr 12 21:57:27 UTC 2016
signed-off-by: Nithin Raju <nithin at vmware.com>
---
datapath-windows/ovsext/Vport.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c
index 7b0103d..4da2b42 100644
--- a/datapath-windows/ovsext/Vport.c
+++ b/datapath-windows/ovsext/Vport.c
@@ -1067,10 +1067,10 @@ static NTSTATUS
GetNICAlias(GUID *netCfgInstanceId,
IF_COUNTED_STRING *portFriendlyName)
{
- NTSTATUS status = STATUS_SUCCESS;
- WCHAR interfaceName[IF_MAX_STRING_SIZE] = { 0 };
- NET_LUID interfaceLuid = { 0 };
- size_t len = 0;
+ NTSTATUS status;
+ WCHAR interfaceName[IF_MAX_STRING_SIZE + 1];
+ NET_LUID interfaceLuid;
+ size_t len;
status = ConvertInterfaceGuidToLuid(netCfgInstanceId,
&interfaceLuid);
--
2.6.2
More information about the dev
mailing list