[ovs-dev] [PATCH] datapath-windows: minor fixes in GetNICAlias()
Ben Pfaff
blp at ovn.org
Wed Apr 13 04:08:39 UTC 2016
Applied, thanks!
On Tue, Apr 12, 2016 at 02:57:27PM -0700, Nithin Raju wrote:
> 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
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
More information about the dev
mailing list