svn commit: r321965 - head/sys/dev/hyperv/utilities

Sepherosa Ziehau sephe at FreeBSD.org
Thu Aug 3 01:44:42 UTC 2017


Author: sephe
Date: Thu Aug  3 01:44:40 2017
New Revision: 321965
URL: https://svnweb.freebsd.org/changeset/base/321965

Log:
  hyperv/kvp: Use proper size macro for adapter id.
  
  Submitted by:	Christopher Ertl <Christopher.Ertl microsoft com>
  MFC after:	3 days
  Sponsored by:	Microsoft

Modified:
  head/sys/dev/hyperv/utilities/hv_kvp.c

Modified: head/sys/dev/hyperv/utilities/hv_kvp.c
==============================================================================
--- head/sys/dev/hyperv/utilities/hv_kvp.c	Thu Aug  3 01:40:05 2017	(r321964)
+++ head/sys/dev/hyperv/utilities/hv_kvp.c	Thu Aug  3 01:44:40 2017	(r321965)
@@ -253,7 +253,7 @@ hv_kvp_convert_utf8_ipinfo_to_utf16(struct hv_kvp_msg 
 	    UNUSED_FLAG,
 	    &err_dns);
 	utf8_to_utf16((uint16_t *)host_ip_msg->kvp_ip_val.adapter_id,
-	    MAX_IP_ADDR_SIZE,
+	    MAX_ADAPTER_ID_SIZE,
 	    (char *)umsg->body.kvp_ip_val.adapter_id,
 	    strlen((char *)umsg->body.kvp_ip_val.adapter_id),
 	    UNUSED_FLAG,


More information about the svn-src-head mailing list