diff options
Diffstat (limited to 'NetworkPkg/IScsiDxe/IScsiMisc.c')
-rw-r--r-- | NetworkPkg/IScsiDxe/IScsiMisc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c index a697659f49..2cf3db01b7 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.c +++ b/NetworkPkg/IScsiDxe/IScsiMisc.c @@ -297,7 +297,7 @@ IScsiMacAddrToStr ( for (Index = 0; Index < Len; Index++) {
Str[3 * Index] = (CHAR16) IScsiHexString[(Mac->Addr[Index] >> 4) & 0x0F];
Str[3 * Index + 1] = (CHAR16) IScsiHexString[Mac->Addr[Index] & 0x0F];
- Str[3 * Index + 2] = L'-';
+ Str[3 * Index + 2] = L':';
}
String = &Str[3 * Index - 1] ;
@@ -640,6 +640,14 @@ IScsiRemoveNic ( }
}
+ //
+ // Free attempt is created but not saved to system.
+ //
+ if (mPrivate->NewAttempt != NULL) {
+ FreePool (mPrivate->NewAttempt);
+ mPrivate->NewAttempt = NULL;
+ }
+
return EFI_SUCCESS;
}
|