]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: strlen() doesn't count the terminator
authorDan Carpenter <error27@gmail.com>
Wed, 27 Jul 2011 11:11:43 +0000 (14:11 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 27 Jul 2011 20:28:16 +0000 (20:28 +0000)
commit264d349b87a266d6b31f68f5bffbdd2a2f84a9ae
treebc2f8064a1170be3755b4443f813ee50bf85e3fd
parent33d08cd4cfaa78046ced4240d2e3801b51344e3b
iscsi-target: strlen() doesn't count the terminator

This patch fixes an off by one check in iscsit_add_tiqn() because the
NULL terminator isn't taken into consideration.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c