ISID 0 is perfectly valid.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 16:51:51 +0000 (16:51 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 16:51:51 +0000 (16:51 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1248 d57e44dd-8a1f-0410-8b47-8ef2f437770f

iscsi-scst/usr/iscsid.c

index 7c4ef59..5e517fd 100644 (file)
@@ -453,12 +453,6 @@ static void login_start(struct connection *conn)
 
        conn->cid = be16_to_cpu(req->cid);
        conn->sid.id64 = req->sid.id64;
-       if (!conn->sid.id64) {
-               rsp->status_class = ISCSI_STATUS_INITIATOR_ERR;
-               rsp->status_detail = ISCSI_STATUS_MISSING_FIELDS;
-               conn->state = STATE_EXIT;
-               return;
-       }
 
        name = text_key_find(conn, "InitiatorName");
        if (!name) {