X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FDevicePath%2FDevicePathFromText.c;h=fd310c7d0f75065ed910f143c0a7683f3f42962e;hp=776cf051b0d955044553461d20b457378ed897f1;hb=c1d6749b0ed3c58b7dc771e0f857995096107f44;hpb=d0196be1e39c419223738d7181d4a5d8972792d0 diff --git a/BaseTools/Source/C/DevicePath/DevicePathFromText.c b/BaseTools/Source/C/DevicePath/DevicePathFromText.c index 776cf051b0..fd310c7d0f 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 { //