tgtadm return error when updating RedirectReason to Temporary because of wrong var assignment. Signed-off-by: Roi Dayan <roid@xxxxxxxxxxxx> --- usr/iscsi/target.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/iscsi/target.c b/usr/iscsi/target.c index 3a91404..916c84a 100644 --- a/usr/iscsi/target.c +++ b/usr/iscsi/target.c @@ -531,7 +531,7 @@ tgtadm_err iscsi_target_update(int mode, int op, int tid, uint64_t sid, uint64_t if (!strncmp(str, "Temporary", 9)) { target->redirect_info.reason = ISCSI_LOGIN_STATUS_TGT_MOVED_TEMP; - err = TGTADM_SUCCESS; + adm_err = TGTADM_SUCCESS; } else if (!strncmp(str, "Permanent", 9)) { target->redirect_info.reason = ISCSI_LOGIN_STATUS_TGT_MOVED_PERM; -- 1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html