diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-03-02 23:03:34 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-03-03 15:40:04 +0800 |
commit | c1d6749b0ed3c58b7dc771e0f857995096107f44 (patch) | |
tree | ba13021f437337ced15209f2af2af58bdadaf1f2 /BaseTools | |
parent | d0196be1e39c419223738d7181d4a5d8972792d0 (diff) | |
download | edk2-c1d6749b0ed3c58b7dc771e0f857995096107f44.zip edk2-c1d6749b0ed3c58b7dc771e0f857995096107f44.tar.gz edk2-c1d6749b0ed3c58b7dc771e0f857995096107f44.tar.bz2 |
BaseTools: Fix bug when converting iSCSI node
If protocol string is not specified, default TCP(0) should be used.
Today's implementation wrongly sets to 1 for this case.
Copy the fix solution from MdePkg Hash version e6c80aea.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/C/DevicePath/DevicePathFromText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/DevicePath/DevicePathFromText.c b/BaseTools/Source/C/DevicePath/DevicePathFromText.c index 776cf05..fd310c7 100644 --- a/BaseTools/Source/C/DevicePath/DevicePathFromText.c +++ b/BaseTools/Source/C/DevicePath/DevicePathFromText.c @@ -2426,7 +2426,7 @@ DevPathFromTextiSCSI ( ISCSIDevPath->LoginOption = (UINT16) Options;
- if (StrCmp (ProtocolStr, L"TCP") == 0) {
+ if (IS_NULL (*ProtocolStr) || (StrCmp (ProtocolStr, L"TCP") == 0)) {
ISCSIDevPath->NetworkProtocol = 0;
} else {
//
|