Changeset 77437 in vbox for trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
- Timestamp:
- Feb 22, 2019 6:27:43 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r77436 r77437 235 235 struct StaticIpV6Config 236 236 { 237 Utf8StrIPV6Address;237 char * IPV6Address; 238 238 ULONG IPV6NetMaskLength; 239 239 }; … … 243 243 public: 244 244 NetworkInterfaceHelperClientData(){}; 245 ~NetworkInterfaceHelperClientData(){}; 245 ~NetworkInterfaceHelperClientData() 246 { 247 if (msgCode == SVCHlpMsg::EnableStaticIpConfigV6 && u.StaticIPV6.IPV6Address) 248 { 249 RTStrFree(u.StaticIPV6.IPV6Address); 250 u.StaticIPV6.IPV6Address = NULL; 251 } 252 }; 246 253 247 254 SVCHlpMsg::Code msgCode; … … 536 543 vrc = aClient->write(d->guid); 537 544 if (RT_FAILURE(vrc)) break; 538 vrc = aClient->write( Utf8Str(d->u.StaticIPV6.IPV6Address));545 vrc = aClient->write(d->u.StaticIPV6.IPV6Address); 539 546 if (RT_FAILURE(vrc)) break; 540 547 vrc = aClient->write(d->u.StaticIPV6.IPV6NetMaskLength); … … 1320 1327 d->guid = guid; 1321 1328 d->iface = pIf; 1322 d->u.StaticIPV6.IPV6Address = aIPV6Address;1329 d->u.StaticIPV6.IPV6Address = RTStrDup(aIPV6Address); 1323 1330 d->u.StaticIPV6.IPV6NetMaskLength = aIPV6MaskPrefixLength; 1324 1331
Note:
See TracChangeset
for help on using the changeset viewer.