diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2014-04-21 18:59:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2014-04-21 18:59:06 +0000 |
commit | 30d8e7b7f9315419e0f071b8f600300c47d6a792 (patch) | |
tree | cc1d3b3751f1d67270db8eedbfe5fa7674807a85 /usr.sbin/iscsid/vscsi.c | |
parent | 08d03a7c72c532bcd4f51e5694073244c263b4f6 (diff) |
Bind to localAddr if specified and add some XXX comments about stuff
that is not prefect yet.
Diffstat (limited to 'usr.sbin/iscsid/vscsi.c')
-rw-r--r-- | usr.sbin/iscsid/vscsi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/iscsid/vscsi.c b/usr.sbin/iscsid/vscsi.c index 5606358fd9d..7878aa801d2 100644 --- a/usr.sbin/iscsid/vscsi.c +++ b/usr.sbin/iscsid/vscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vscsi.c,v 1.12 2014/04/21 12:24:58 claudio Exp $ */ +/* $OpenBSD: vscsi.c,v 1.13 2014/04/21 18:59:05 claudio Exp $ */ /* * Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org> @@ -310,6 +310,8 @@ vscsi_dataout(struct connection *c, struct scsi_task *t, u_int32_t ttt, size = len - off > c->active.MaxRecvDataSegmentLength ? c->active.MaxRecvDataSegmentLength : len - off; + /* XXX also respect the MaxBurstLength */ + if (!(p = pdu_new())) fatal("vscsi_r2t"); if (!(dout = pdu_gethdr(p))) |