Commit 32f59976 authored by zhuxiaohui.400's avatar zhuxiaohui.400 Committed by Tomasz Zawadzki
Browse files

lib/iscsi:break the loop in iscsi_parse_portal_grp() when the portal


section reaches the end

Change-Id: Ia7a23833927e24b1f90a443b582b2f43ea00f450
Signed-off-by: default avatarzhuxiaohui.400 <zhuxiaohui.400@bytedance.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/979


Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarZiye Yang <ziye.yang@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 04470499
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -400,8 +400,7 @@ iscsi_parse_portal_grp(struct spdk_conf_section *sp)
		label = spdk_conf_section_get_nmval(sp, "Portal", i, 0);
		portal = spdk_conf_section_get_nmval(sp, "Portal", i, 1);
		if (label == NULL || portal == NULL) {
			SPDK_ERRLOG("portal error\n");
			goto error;
			break;
		}

		rc = iscsi_parse_portal(portal, &p);