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>
\r
ISCSIDevPath->LoginOption = (UINT16) Options;\r
\r
\r
ISCSIDevPath->LoginOption = (UINT16) Options;\r
\r
- if (StrCmp (ProtocolStr, L"TCP") == 0) {\r
+ if (IS_NULL (*ProtocolStr) || (StrCmp (ProtocolStr, L"TCP") == 0)) {\r
ISCSIDevPath->NetworkProtocol = 0;\r
} else {\r
//\r
ISCSIDevPath->NetworkProtocol = 0;\r
} else {\r
//\r